public ColdSpellEnteredNotificationHandler(IColdSpellRepository coldSpellRepository, ISmsClient smsClient, IConfiguration configuration, IDateTimeProvider dateTimeProvider) { _coldSpellRepository = coldSpellRepository; _smsClient = smsClient; _configuration = configuration; _dateTimeProvider = dateTimeProvider; _timeZone = new GmtTimeZone(); }
public void SetUp() { Configuration = Substitute.For <IConfiguration>(); SmsClient = Substitute.For <ISmsClient>(); ColdSpellRepository = Substitute.For <IColdSpellRepository>(); DateTimeProvider = Substitute.For <IDateTimeProvider>(); Before(); Handler = new ColdSpellEnteredNotificationHandler(ColdSpellRepository, SmsClient, Configuration, DateTimeProvider); }