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

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

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