예제 #1
0
        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);
        }
예제 #2
0
        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);
        }