Exemplo n.º 1
0
 private void PrintList(Customer customer, Month month)
 {
     foreach (var item in clientProcessor.GetPaymentsOfSelectedMonthByCustomerId(customer, month))
     {
         Console.WriteLine(item.ToString());
     }
     ;
 }
        public void ShouldGetPaymentsListOfSelectedMonth(Month month)
        {
            // Arrange
            List <Payment> expected = customers[0].Payments.Where(x => x.MonthId == month).ToList();
            // Act
            List <Payment> actual = clientProcessor.GetPaymentsOfSelectedMonthByCustomerId(customers[0], month);

            // Assert
            Assert.Equal(expected, actual);
        }