Example #1
0
        public ProductViewModel GetSingleProduct(Int32 Id)
        {
            var productServiceModel           = _buildModelsService.GetProduct(Id);
            ProductViewModel productViewModel = Mapper.Map <ProductViewModel>(productServiceModel);

            return(productViewModel);
        }
Example #2
0
        public void Select_A_Single_ProductID()
        {
            //Arrange
            var id = 1;

            //Act
            var product = buildModels.GetProduct(id);

            //Assert
            product.ProductID.Should().Be(id);
        }