public List <FindProductInfoViewModel> FindMatchingProductInfo(FindProductInfoViewModel findProduct)
        {
            var productInfoDomainModel = createModel.MappingProductInfo(findProduct);
            var checkValidation        = validator.ValidateProductTitle(productInfoDomainModel);

            if (checkValidation)
            {
                List <dm.ProductInfo>           results          = FindProductInfoHelper.FindPossibleMatches(productInfoDomainModel);
                List <FindProductInfoViewModel> productViewModel = createModel.MappingViewInfo(results);

                return(productViewModel);
            }
            return(null);
        }
示例#2
0
        public void Test_FindPossibleMatches()
        {
            var sut = FindProductInfoHelper.FindPossibleMatches(productInfo);

            Assert.NotEmpty(sut);
        }