示例#1
0
        public void Hour_CreateList_Success()
        {
            // Act
            var hours = repo.Create(new List <Hour>()
            {
                new Hour {
                    HourTimeStamp = DateTime.UtcNow.AddYears(-2).AddHours(-1).NormilizeToHour()
                },
                new Hour {
                    HourTimeStamp = DateTime.UtcNow.AddYears(-2).AddHours(-2).NormilizeToHour()
                }
            });

            // Assert
            Assert.That(hours.Count, Is.EqualTo(2));
        }