public void WhenDataHasNoUpcomingMaintenance_IsAnyUpcomingMaintenance_IsFalse()
        {
            IUpcomingMaintenanceData mockData = Substitute.For <IUpcomingMaintenanceData>();

            mockData.IsAnyUpcomingMaintenance().Returns(false);
            systemUnderTest.Data = mockData;

            Assert.IsFalse(systemUnderTest.IsAnyUpcomingMaintenance());
        }
Пример #2
0
 public bool IsAnyUpcomingMaintenance()
 {
     return(mData.IsAnyUpcomingMaintenance());
 }