Exemple #1
0
        public void Filter_Given_SupportEngineersWhoHadShiftInLastTwoWeeks_Retrun_EmptyCollection()
        {
            //arrange
            var engineersWheDidntHaveShiftInLastTwoWees = new SupportEngineerMocksBuilder()
                                                          .WihtEngineersWhoHadTwoShiftInLastTwoWeeks(5)
                                                          .Build();
            var sut = new EngineersWhoDidntHadTwoShiftsInLastTwoWeeksFilter();

            //act
            var filteredEngineers = sut.Filter(engineersWheDidntHaveShiftInLastTwoWees);

            //assert
            filteredEngineers.ShouldBeEmpty();
        }
Exemple #2
0
        public void Filter_Given_SupportEngineersWhoDidntHaveShiftInLastTwoWeeks_Retrun_AllGivenEngineers()
        {
            //arrange
            var engineersWheDidntHaveShiftInLastTwoWees = new SupportEngineerMocksBuilder()
                                                          .WihtEngineersWhoDidntHadTwoShiftInLastTwoWeeks(5)
                                                          .Build();
            var sut = new EngineersWhoDidntHadTwoShiftsInLastTwoWeeksFilter();

            //act
            var filteredEngineers = sut.Filter(engineersWheDidntHaveShiftInLastTwoWees);

            //assert
            filteredEngineers.Count().ShouldBe(engineersWheDidntHaveShiftInLastTwoWees.Count());
        }