public async Task Setup() { var hourRepository = new HourRepository(ConnectionFactorySetup.ConnectionFactory); this.repository = new IntegrationTestNewHourRepository(ConnectionFactorySetup.ConnectionFactory, hourRepository); this.hourTestDataRepository = new HourTestDataRepository(ConnectionFactorySetup.ConnectionFactory, hourRepository); this.testHour = new MockHour { HourTimeStamp = DateTime.UtcNow.NormilizeToHour() }; await this.hourTestDataRepository.CreateAsync(new List <MockHour> { this.testHour }); var hourToCreate = new Hour { HourTimeStamp = DateTime.UtcNow.NormilizeToHour().AddHours(-4) }; this.nonTestHour = await hourRepository.CreateAsync(hourToCreate); }
public void Setup() { this.hourTestDataRepository = new HourTestDataRepository(ConnectionFactorySetup.ConnectionFactory, new HourRepository(ConnectionFactorySetup.ConnectionFactory)); }