Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public void Select_Multiple_Products()
        {
            //Arrange
            var startsWith = "M";

            //Act
            var product = buildModels.GetListOfProducts(startsWith);

            //Assert
            product.Count.Should().Be(5);
        }