public ProductViewModel GetSingleProduct(Int32 Id) { var productServiceModel = _buildModelsService.GetProduct(Id); ProductViewModel productViewModel = Mapper.Map <ProductViewModel>(productServiceModel); return(productViewModel); }
public void Select_A_Single_ProductID() { //Arrange var id = 1; //Act var product = buildModels.GetProduct(id); //Assert product.ProductID.Should().Be(id); }