public void MapBOToModelList() { var mapper = new BOLVProductAndDescriptionMapper(); BOVProductAndDescription bo = new BOVProductAndDescription(); bo.SetProperties("A", "A", "A", 1, "A"); List <ApiVProductAndDescriptionResponseModel> response = mapper.MapBOToModel(new List <BOVProductAndDescription>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLVProductAndDescriptionMapper(); BOVProductAndDescription bo = new BOVProductAndDescription(); bo.SetProperties("A", "A", "A", 1, "A"); ApiVProductAndDescriptionResponseModel response = mapper.MapBOToModel(bo); response.CultureID.Should().Be("A"); response.Description.Should().Be("A"); response.Name.Should().Be("A"); response.ProductID.Should().Be(1); response.ProductModel.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALVProductAndDescriptionMapper(); var bo = new BOVProductAndDescription(); bo.SetProperties("A", "A", "A", 1, "A"); VProductAndDescription response = mapper.MapBOToEF(bo); response.CultureID.Should().Be("A"); response.Description.Should().Be("A"); response.Name.Should().Be("A"); response.ProductID.Should().Be(1); response.ProductModel.Should().Be("A"); }