Ejemplo n.º 1
0
        public static void SetUtcNow(this ServerArrangement arrangement, DateTimeOffset utcNow)
        {
            var mockService = arrangement.MainServices.GetRequiredService <IDateTimeService>() as SimpleDateTimeService;

            mockService.UtcNow = utcNow;
        }
Ejemplo n.º 2
0
        public static InMemoryDataTable <LuckyDrawDataTablesSettings, OpenCompetitionEntity> GetOpenCompetitions(this ServerArrangement arrangement)
        {
            var openCompetitions = arrangement.MainServices.GetRequiredService <IDataTable <LuckyDrawDataTablesSettings, OpenCompetitionEntity> >() as InMemoryDataTable <LuckyDrawDataTablesSettings, OpenCompetitionEntity>;

            return(openCompetitions);
        }
Ejemplo n.º 3
0
 public static DependencyServiceHttpHandler GetTimerServiceHandler(this ServerArrangement arrangement)
 {
     return(arrangement.GetHttpHandler("Timer"));
 }