public void HadShiftYesterday_When_EngineerDidntHadShiftYesterday_Returns_False() { //arrange var sut = new SupportEngineerBuilder() .Build(); //act var result = sut.HadShiftYesterday(); //assert result.ShouldBeFalse(); }
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(); }