public void MapEFToBO() { var mapper = new DALProductModelIllustrationMapper(); ProductModelIllustration entity = new ProductModelIllustration(); entity.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1); BOProductModelIllustration response = mapper.MapEFToBO(entity); response.IllustrationID.Should().Be(1); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.ProductModelID.Should().Be(1); }
public void MapEFToBOList() { var mapper = new DALProductModelIllustrationMapper(); ProductModelIllustration entity = new ProductModelIllustration(); entity.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1); List <BOProductModelIllustration> response = mapper.MapEFToBO(new List <ProductModelIllustration>() { entity }); response.Count.Should().Be(1); }