public void MapBOToModelList() { var mapper = new BOLSpecialOfferProductMapper(); BOSpecialOfferProduct bo = new BOSpecialOfferProduct(); bo.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da")); List<ApiSpecialOfferProductResponseModel> response = mapper.MapBOToModel(new List<BOSpecialOfferProduct>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLSpecialOfferProductMapper(); BOSpecialOfferProduct bo = new BOSpecialOfferProduct(); bo.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da")); ApiSpecialOfferProductResponseModel response = mapper.MapBOToModel(bo); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.ProductID.Should().Be(1); response.Rowguid.Should().Be(Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da")); response.SpecialOfferID.Should().Be(1); }