public virtual ApiBusinessEntityAddressResponseModel MapBOToModel( BOBusinessEntityAddress boBusinessEntityAddress) { var model = new ApiBusinessEntityAddressResponseModel(); model.SetProperties(boBusinessEntityAddress.BusinessEntityID, boBusinessEntityAddress.AddressID, boBusinessEntityAddress.AddressTypeID, boBusinessEntityAddress.ModifiedDate, boBusinessEntityAddress.Rowguid); return(model); }
public void MapResponseToRequest() { var mapper = new ApiBusinessEntityAddressModelMapper(); var model = new ApiBusinessEntityAddressResponseModel(); model.SetProperties(1, 1, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da")); ApiBusinessEntityAddressRequestModel response = mapper.MapResponseToRequest(model); response.AddressID.Should().Be(1); response.AddressTypeID.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")); }