public void MapBOToModel() { var mapper = new BOLProductModelIllustrationMapper(); BOProductModelIllustration bo = new BOProductModelIllustration(); bo.SetProperties(1, 1, DateTime.Parse("1/1/1987 12:00:00 AM")); ApiProductModelIllustrationResponseModel response = mapper.MapBOToModel(bo); 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 MapBOToModelList() { var mapper = new BOLProductModelIllustrationMapper(); BOProductModelIllustration bo = new BOProductModelIllustration(); bo.SetProperties(1, 1, DateTime.Parse("1/1/1987 12:00:00 AM")); List <ApiProductModelIllustrationResponseModel> response = mapper.MapBOToModel(new List <BOProductModelIllustration>() { { bo } }); response.Count.Should().Be(1); }