Exemplo n.º 1
0
 public void GivenAveragePaymentPerPersonInAssignmentsBSpecifiedInTaxIsOver(string assignmentKey, string taxKey, int average)
 {
     context.ForCollection <Assignment>(assignmentKey)
     .ForCollection <Tax>(taxKey)
     .IsTrue((assignments, taxes) => taxes.Sum(x => x.Amount) / assignments.Sum(x => x.HeadCount) > average);
 }
Exemplo n.º 2
0
 public void GivenAssignmentsHaveCoveredPeople(string key)
 {
     context.ForCollection <Assignment>(key)
     .IsTrue(assignments => assignments.Sum(x => x.HeadCount) > 0);
 }