public void Setup() { var timeProviderMock = new Mock <ITimeProvider>(); timeProviderMock.Setup(m => m.GetToday()).Returns(_currentDate); _uut = new AvailableDeliveryDateBuilder(timeProviderMock.Object); }
public void Setup() { var _timeMock = new Mock <ITimeProvider>(); _timeMock.Setup(m => m.GetToday()).Returns(_currentDate); _timeMock.Setup(m => m.GetDaysUntilEndOfWeek()).Returns(6); var availableDeliveryDateBuilder = new AvailableDeliveryDateBuilder(_timeMock.Object); var productValidator = new ProductValidator(_timeMock.Object); _uut = new DeliveryDateScheduleService(availableDeliveryDateBuilder, _timeMock.Object, productValidator); }