public void GetParcelsByDateNoParcels() { var stock = new Stock(Guid.NewGuid()); stock.List("ABC", "ABC Pty Ltd", new Date(1974, 01, 01), false, AssetCategory.AustralianStocks); var holding = new Holding(stock, new Date(2000, 01, 01)); holding.Parcels(new Date(2000, 01, 01)).Should().BeEmpty(); }
public void GetParcelsByDateParcelsExiste() { var stock = new Stock(Guid.NewGuid()); stock.List("ABC", "ABC Pty Ltd", new Date(1974, 01, 01), false, AssetCategory.AustralianStocks); var holding = new Holding(stock, new Date(2000, 01, 01)); holding.AddParcel(new Date(2000, 01, 01), new Date(2000, 01, 01), 100, 1000.00m, 1200.00m, null); holding.AddParcel(new Date(2001, 01, 01), new Date(2001, 01, 01), 200, 2000.00m, 2200.00m, null); holding.Parcels().Should().HaveCount(2); }
public void AccessParcelsByDateParcelsExistButNotAtDate() { var stock = new Stock(Guid.NewGuid()); stock.List("ABC", "ABC Pty Ltd", new Date(1974, 01, 01), false, AssetCategory.AustralianStocks); var holding = new Holding(stock, new Date(2000, 01, 01)); holding.AddParcel(new Date(2000, 01, 01), new Date(2000, 01, 01), 100, 1000.00m, 1200.00m, null); holding.AddParcel(new Date(2001, 01, 01), new Date(2001, 01, 01), 200, 2000.00m, 2200.00m, null); holding.Parcels(new Date(1999, 01, 01)).Should().BeEmpty(); }