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); }
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); }
public void GetSubCropCategoriesTest() { IFarmingData data = new FarmingDataTest(); FarmingBusiness farmingBusiness = new FarmingBusiness(data); var categoryList = farmingBusiness.GetCropSubCategories("Fruits"); Assert.AreEqual("Banana", categoryList.First().SubCategoryName); }