public virtual ApiSubscriptionServerRequestModel MapServerResponseToRequest( ApiSubscriptionServerResponseModel response) { var request = new ApiSubscriptionServerRequestModel(); request.SetProperties( response.Name, response.StripePlanName); return(request); }
public void MapModelToEntity() { var mapper = new DALSubscriptionMapper(); ApiSubscriptionServerRequestModel model = new ApiSubscriptionServerRequestModel(); model.SetProperties("A", "A"); Subscription response = mapper.MapModelToEntity(1, model); response.Name.Should().Be("A"); response.StripePlanName.Should().Be("A"); }