public void MapBOToModel() { var mapper = new BOLRowVersionCheckMapper(); BORowVersionCheck bo = new BORowVersionCheck(); bo.SetProperties(1, "A", Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da")); ApiRowVersionCheckResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); response.RowVersion.Should().Be(Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da")); }
public void MapBOToModelList() { var mapper = new BOLRowVersionCheckMapper(); BORowVersionCheck bo = new BORowVersionCheck(); bo.SetProperties(1, "A", Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da")); List <ApiRowVersionCheckResponseModel> response = mapper.MapBOToModel(new List <BORowVersionCheck>() { { bo } }); response.Count.Should().Be(1); }