public virtual ApiContactTypeResponseModel MapBOToModel( BOContactType boContactType) { var model = new ApiContactTypeResponseModel(); model.SetProperties(boContactType.ContactTypeID, boContactType.ModifiedDate, boContactType.Name); return(model); }
public void MapResponseToRequest() { var mapper = new ApiContactTypeModelMapper(); var model = new ApiContactTypeResponseModel(); model.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); ApiContactTypeRequestModel response = mapper.MapResponseToRequest(model); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Name.Should().Be("A"); }