コード例 #1
0
        public void CreateRequestToModelMapValues()
        {
            ProductCreateRequest productRequest = this.GetProductCreateRequest();
            IProduct             productModel   = ProductMapper.CreateRequestToModel(productRequest);

            Assert.Equal(productRequest.Name, productModel.Name);
            Assert.Equal(productRequest.Description, productModel.Description);
            Assert.Equal(productRequest.AgeRestriction, productModel.AgeRestriction);
            Assert.Equal(productRequest.Company, productModel.Company);
            Assert.Equal(productRequest.Price, productModel.Price);
        }