public async Task CreateAsync()
        {
            var testData = new MockHour {
                HourTimeStamp = DateTime.UtcNow.NormilizeToHour()
            };
            var testDataList = new List <MockHour> {
                testData
            };

            await this.hourTestDataRepository.CreateAsync(testDataList);

            Assert.Pass("No return results");
        }
Ejemplo n.º 2
0
        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);
        }