blob: 365505a30fe55a6bc68eac65f4c7683a2dfaef62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package services.account;
import services.accountdata.StockAccount;
import services.stockquote.StockQuoteService;
import services.stockquote.StockQuoteServiceImpl;
public class StockQuoteServiceTest {
// private StockQuoteService stockQuoteService = new StockQuoteServiceImpl();
private StockQuoteService stockQuoteService;
public static void main (String[] args) {
new StockQuoteServiceTest().getAccountReport("123456");
}
public AccountReport getAccountReport(String customerID) {
StockAccount stockAccount = new StockAccount();
stockQuoteService = new StockQuoteServiceImpl();
float balance = (stockQuoteService.getQuote(stockAccount.getSymbol()))*stockAccount.getQuantity();
return null;
}
}
|