Пример #1
0
        public void GetSearchOptionsTest()
        {
            IFarmingData    data            = new FarmingDataTest();
            FarmingBusiness farmingBusiness = new FarmingBusiness(data);
            var             categoryList    = farmingBusiness.GetSearchOptions("Test option");

            Assert.AreEqual("Test option", categoryList.First().OptionDescription);
        }
Пример #2
0
        public void GetSymptomsTest()
        {
            IFarmingData    data            = new FarmingDataTest();
            FarmingBusiness farmingBusiness = new FarmingBusiness(data);
            var             categoryList    = farmingBusiness.GetSymptoms("Test option", "Banana");

            Assert.AreEqual("Dark Green in leaves", categoryList.First().SymptomDescription);
        }
Пример #3
0
        public void GetSubCropCategoriesTest()
        {
            IFarmingData    data            = new FarmingDataTest();
            FarmingBusiness farmingBusiness = new FarmingBusiness(data);
            var             categoryList    = farmingBusiness.GetCropSubCategories("Fruits");

            Assert.AreEqual("Banana", categoryList.First().SubCategoryName);
        }