public SuperDemoFixture() { var baseUri = new Uri(System.Configuration.ConfigurationManager.AppSettings["Testing_BaseUrl"]); httpClient = new System.Net.Http.HttpClient(); Api = new DemoWebApi.Controllers.Client.SuperDemo(httpClient, baseUri); }
public SuperDemoFixture() { var baseUri = new Uri("http://localhost:56321/"); httpClient = new System.Net.Http.HttpClient(); Api = new DemoWebApi.Controllers.Client.SuperDemo(httpClient, baseUri); }
public SuperDemoFixture() { var baseUri = new Uri("http://localhost:5000/"); httpClient = new System.Net.Http.HttpClient(); httpClient.BaseAddress = baseUri; Api = new DemoWebApi.Controllers.Client.SuperDemo(httpClient); }
public SuperDemoFixture() { var jsonSerializerSettings = new Newtonsoft.Json.JsonSerializerSettings() { NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, }; jsonSerializerSettings.Converters.Add(new DateOnlyJsonConverter()); jsonSerializerSettings.Converters.Add(new DateOnlyNullableJsonConverter()); Api = new DemoWebApi.Controllers.Client.SuperDemo(HttpClient, jsonSerializerSettings); }
public SuperDemoFixture() { Api = new DemoWebApi.Controllers.Client.SuperDemo(base.HttpClient); }
public SuperDemoFixture() { Api = new DemoWebApi.Controllers.Client.SuperDemo(HttpClient, BaseUri); }
public SuperDemoFixture() { HttpClient.BaseAddress = BaseUri; Api = new DemoWebApi.Controllers.Client.SuperDemo(HttpClient); }