示例#1
0
        public void GetPlantsListShouldPass()
        {
            PlantsIndexModel plantsIndexModel = new PlantsIndexModel();

            List <PlantModel> list = plantsIndexModel.PlantsList;

            Assert.AreEqual(list[0].CommonName, "Monstera");
        }
示例#2
0
        public void TestDefaultConstructorShouldPass()
        {
            PlantsIndexModel plantsIndexModel = new PlantsIndexModel();

            Assert.IsNotNull(plantsIndexModel);
        }
示例#3
0
        public IActionResult PlantsIndex()
        {
            var plantsIndexModel = new PlantsIndexModel();

            return(View(plantsIndexModel));
        }