public ProductsViewModel GetMultipleProducts(string stringValue) { var productsServiceModel = _buildModelsService.GetListOfProducts(stringValue); var products = Mapper.Map <List <ProductViewModel> >(productsServiceModel); ProductsViewModel productsViewModel = new ProductsViewModel(); productsViewModel.Products = products; return(productsViewModel); }
public void Select_Multiple_Products() { //Arrange var startsWith = "M"; //Act var product = buildModels.GetListOfProducts(startsWith); //Assert product.Count.Should().Be(5); }