public void MapEFToBOList() { var mapper = new DALVProductAndDescriptionMapper(); VProductAndDescription entity = new VProductAndDescription(); entity.SetProperties("A", "A", "A", 1, "A"); List <BOVProductAndDescription> response = mapper.MapEFToBO(new List <VProductAndDescription>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALVProductAndDescriptionMapper(); VProductAndDescription entity = new VProductAndDescription(); entity.SetProperties("A", "A", "A", 1, "A"); BOVProductAndDescription response = mapper.MapEFToBO(entity); 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"); }