public void TestCreateClothingCatigory()
        {
            DayInfo weather1 = new DayInfo() { temp = "14", desc = "fine" };

            var option = rules.GetClothingCatigory(weather1);
            Assert.AreEqual(ClothingCatigory.cold, option.TempRange);
            WeatherCondition condition = option.WeatherType;
            Assert.AreEqual(WeatherCondition.fine, condition);

            DayInfo weather2 = new DayInfo() { temp = "14", desc = "rainy" };

            option = rules.GetClothingCatigory(weather2);
            Assert.AreEqual(ClothingCatigory.cold, option.TempRange);
            condition = option.WeatherType;
            Assert.AreEqual(WeatherCondition.rain, condition);

            DayInfo weather3 = new DayInfo() { temp = "18", desc = "windy" };

            option = rules.GetClothingCatigory(weather3);
            Assert.AreEqual(ClothingCatigory.warm, option.TempRange);
            condition = option.WeatherType;
            Assert.AreEqual(WeatherCondition.wind, condition);

            DayInfo weather4 = new DayInfo() { temp = "18", desc = "overcast" };

            option = rules.GetClothingCatigory(weather4);
            Assert.AreEqual(ClothingCatigory.warm, option.TempRange);
            condition = option.WeatherType;
            Assert.AreEqual(WeatherCondition.overcast, condition);
        }
        public ClothingOption GetClothingCatigory(DayInfo weather)
        {
            GetClothingTempCatigory(weather.getTempCAsInt());
            SetWeatherCondition(weather.desc);

            Debug.Print("TempC: " + weather.getTempCAsInt());
            return weatherClothing;
        }
        public void TestCreateClothingCatigoryWithPhases()
        {
            DayInfo weather1 = new DayInfo() { temp = "18", desc = "It will be overcast" };

            var option = rules.GetClothingCatigory(weather1);
            var condition = option.WeatherType;
            Assert.AreEqual(WeatherCondition.overcast, condition);

            DayInfo weather2 = new DayInfo() { temp = "18", desc = "But will it be Fine?" };

            option = rules.GetClothingCatigory(weather2);
            condition = option.WeatherType;
            Assert.AreEqual(WeatherCondition.fine, condition);
        }
 public void TestParamConstruct()
 {
     string[] input = { "15", "fine", "png" };
     dayInfo = new DayInfo(input, "Wellington");
 }
 public void Init()
 {
     dayInfo = new DayInfo();
 }