public AddInvestment ( |
||
investment | ||
리턴 | void |
public void Should_Be_Able_To_Create_And_Add_Investment_To_Portfolio() { Investor investor = new Investor(new Name("Inverstor1"), new GringottsDate(DateTime.Now), new Amount(1000)); Portfolio portfolio = new Portfolio(); portfolio.AddInvestment(new Investment(investor, null, new Amount(500))); Assert.AreEqual(new Amount(500), portfolio.Value); }
public void ShouldBeAbleToCreateAndAddInvestmentToPortfolio() { var investor = new Investor(new Name("Inverstor1"), new Amount(1000)); var portfolio = new Portfolio(); portfolio.AddInvestment(new Investment(investor, null, new Amount(500))); Assert.AreEqual(new Amount(500), portfolio.Value); }