public async Task Get_plant_listing_by_plantDetailsIds_bad_request_response(string plantDetailsIds, int pageSize, int pageIndex)
        {
            //Arrange
            var plantDetailsContext = new PlantListingContext(_dbOptions);

            //Act
            var plantDetailsController = new PlantListingController(plantDetailsContext, _mockPlantImageService.Object);
            var actionResult           = await plantDetailsController.GetPlantListingByPlantDetailsIds(plantDetailsIds, pageSize, pageIndex);

            //Assert
            Assert.IsType <ActionResult <PaginatedItemsViewModel <PlantDetailsViewModel> > >(actionResult);
            Assert.IsType <BadRequestObjectResult>(actionResult.Result);
        }
        [InlineData("1|2|3", 2, 1, 1)] // test pagination
        public async Task Get_plant_listing_by_plantDetailsIds_success(string plantDetailsIds, int pageSize, int pageIndex, int expectedCount)
        {
            //Arrange
            var plantDetailsContext = new PlantListingContext(_dbOptions);

            //Act
            var plantDetailsController = new PlantListingController(plantDetailsContext, _mockPlantImageService.Object);
            var actionResult           = await plantDetailsController.GetPlantListingByPlantDetailsIds(plantDetailsIds, pageSize, pageIndex);

            //Assert
            Assert.IsType <ActionResult <PaginatedItemsViewModel <PlantDetailsViewModel> > >(actionResult);
            Assert.Equal(expectedCount, actionResult.Value.Data.Count());
        }