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

            MongoDbUtil.Instance().Drop();
            service.AddBulk(GetDatas().ToArray());
            Assert.IsTrue(service.GetWeatherDatas().Count() == 8);
        }
        public void GetWeatherStaticsTest()
        {
            MongoService service = new MongoService();

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

            sevice.StoreDataWeather("9000", "BE");
            Assert.IsTrue(sevice.GetWeatherDatas().Count() == 1);
        }
        public void StoreDataWeatherStaticsTest()
        {
            MongoDbUtil.Instance().Drop();
            WeatherSevice sevice = new WeatherSevice();

            sevice.StoreDataWeather(CityRepo.Cities().Take(5).ToList(), "BE");
            sevice.GetWeatherStatics();
            Assert.IsTrue(sevice.GetWeatherStatics().AllWeatherDatas().Count() == 4);
        }
        public void AddTest()
        {
            MongoService service = new MongoService();

            MongoDbUtil.Instance().Drop();
            service.Add(new WeatherData()
            {
                Country       = "BE",
                Temperature   = 12.5,
                Speed         = 10.2,
                City          = "Ghent",
                Pressure      = 12,
                WindSpeed     = 5,
                Id            = Guid.NewGuid(),
                Humidty       = 5,
                WindDirection = "NE",
                UpdateWeather = DateTime.Now
            });
            Assert.IsTrue(service.GetWeatherDatas().Count() == 1);
        }