Exemple #1
0
        public void At_1700_ItIsEvening()
        {
            var actual = PartsOfDay.Run(this.httpRequest, NullLogger.Instance, new FixDateTimeResolver(new DateTime(2000, 1, 1, 17, 0, 0, DateTimeKind.Utc)));

            Assert.Equal("evening", actual);
        }
Exemple #2
0
        public void At_2100_ItIsNight()
        {
            var actual = PartsOfDay.Run(this.httpRequest, NullLogger.Instance, new FixDateTimeResolver(new DateTime(2000, 1, 1, 21, 0, 0, DateTimeKind.Utc)));

            Assert.Equal("night", actual);
        }
Exemple #3
0
        public void At_1200_ItIsAfternoon()
        {
            var actual = PartsOfDay.Run(this.httpRequest, NullLogger.Instance, new FixDateTimeResolver(new DateTime(2000, 1, 1, 12, 0, 0, DateTimeKind.Utc)));

            Assert.Equal("afternoon", actual);
        }