Exemplo n.º 1
0
        public DailyNormalService_GetDailyNormal()
        {
            WeatherDbContext context = null;             // mock this value
            IAsyncRepository <DailyNormal> repository = new DailyNormalRepository(context);

            this._dailyNormalService = new DailyNormalService(repository);
        }
Exemplo n.º 2
0
 public static IPredictionService <IPrediction> GetPredictionService(string predictionService, IDailyNormalService service)
 {
     switch (predictionService.ToLowerInvariant())
     {
     default:
         return(new DumbPredictionService(service));
     }
 }
 public DumbPredictionService(IDailyNormalService dailyNormalService)
 {
     this._dataService = dailyNormalService;
 }
Exemplo n.º 4
0
        public PredictionService_Predict()
        {
            IDailyNormalService dailyNormalService = null;             //TODO: Mock this value

            this._predictionService = new DumbPredictionService(dailyNormalService);
        }