public void CorrectTotalCostOfAllProjectsShouldBeCalculated() { var projectRepo = new MockProjectRepo(); var materialRepo = new MockMaterialRepo(); var designerRepo = new MockDesignerRepo(); var expected = 1080; var actual = projectRepo.GetTotalCost(); Assert.Equal(expected, actual); }
public void CorrectAverageCostPerDesignerShouldBeCalculated() { var projectRepo = new MockProjectRepo(); var materialRepo = new MockMaterialRepo(); var designerRepo = new MockDesignerRepo(); var expected = 438; var actual = projectRepo.GetAverageCost(2); Assert.Equal(expected, actual); }