private Schema GetTestSchema(string endpointId = null, string id = "test", string name = "test") { Endpoint endpoint = endpointId == null ? endpoint = EndpointHelper.GetEndpointForId("AllCampaigns") : EndpointHelper.GetEndpointForId(endpointId); return(new Schema { Id = id, Name = name, PublisherMetaJson = JsonConvert.SerializeObject(endpoint), }); }