public void GetWeatherStaticsTest()
        {
            MongoService service = new MongoService();

            MongoDbUtil.Instance().Drop();
            service.AddBulk(GetDatas().ToArray());
            Assert.IsTrue(service.GetWeatherStatics().AllWeatherDatas().Count > 1);
        }
        public void GetListOfWeatherkTest()
        {
            MongoService service = new MongoService();

            MongoDbUtil.Instance().Drop();
            service.AddBulk(GetDatas().ToArray());
            Assert.IsTrue(service.GetWeatherDatas().Count() == 8);
        }
Example #3
0
        public void StoreDataWeather(List <string> datas, string country)
        {
            var bulk = _weatherWebRetrieverService.GetWeatherBulkNow(datas, country);

            _dataRepo.AddBulk(bulk.AllWeatherDatas().ToArray());
        }