Exemplo n.º 1
0
        public void HadShiftYesterday_When_EngineerDidntHadShiftYesterday_Returns_False()
        {
            //arrange
            var sut = new SupportEngineerBuilder()
                      .Build();

            //act
            var result = sut.HadShiftYesterday();

            //assert
            result.ShouldBeFalse();
        }
Exemplo n.º 2
0
        public void HadShiftYesterday_When_EngineerDidHadShiftYesterday_Returns_True()
        {
            //arrange
            var sut = new SupportEngineerBuilder()
                      .WithShiftLoggedOnDate(DateTime.Today.AddDays(-1))
                      .Build();

            //act
            var result = sut.HadShiftYesterday();

            //assert
            result.ShouldBeTrue();
        }