예제 #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));
        }