public void GetRevenue_ShouldReturnSumUpEveryFourRecords() { // Arrange SetupDataDao(11); var target = new Accounting(_OrderDao); var expected = new List<int> { 50, 66, 60 }; // Act var actual = target.GetRevenues(); // Assert expected.ToExpectedObject().ShouldEqual(actual); }
public void GetRevenue_ShouldReturnSumUpIfLessThan4() { // Arrange SetupDataDao(2); var target = new Accounting(_OrderDao); var expected = new List<int> { 23 }; // Act var actual = target.GetRevenues(); // Assert expected.ToExpectedObject().ShouldEqual(actual); }