public virtual ApiSubscriptionResponseModel MapBOToModel( BOSubscription boSubscription) { var model = new ApiSubscriptionResponseModel(); model.SetProperties(boSubscription.Id, boSubscription.IsDisabled, boSubscription.JSON, boSubscription.Name, boSubscription.Type); return(model); }
public void MapResponseToRequest() { var mapper = new ApiSubscriptionModelMapper(); var model = new ApiSubscriptionResponseModel(); model.SetProperties("A", true, "A", "A", "A"); ApiSubscriptionRequestModel response = mapper.MapResponseToRequest(model); response.IsDisabled.Should().Be(true); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); response.Type.Should().Be("A"); }