public void GeneratePaymentsToAllLines_CreatePaymentsforAllCustomerLines_ReturnListOfPayments() { //arrange var lines = _data.GetAllLinesWithPackageAndFriend(); var customer = _data.GetCustomer(); customer.CustomerType = _data.GetCustomerType(CustomerTypeEnum.Private); _mock.Setup(s => s.Line.GetAllLinesWithAllEntities()) .Returns(lines); _mock.Setup(s => s.Customer.GetCustomerWithTypeAndLines(It.IsAny <int>())) .Returns(customer); _manager = new ReceiptManager(_mock.Object); //act var res = _manager.GeneratePaymentsToAllLines(DateTime.Now); //assert Assert.AreEqual(3, res.Count); }