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