Beispiel #1
0
        public static DateTimeStub CreateClockWhichSetsNowAs(string time)
        {
            var clock = new DateTimeStub();

            clock.TimeTravelTo(time);
            return(clock);
        }
Beispiel #2
0
        public static DateTimeStub CreateClockWhichSetsNowAs(DateTime now)
        {
            var clock = new DateTimeStub();

            clock.TimeTravelTo(now);
            return(clock);
        }