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);
        }
예제 #2
0
        public SuperDemoFixture()
        {
            var baseUri = new Uri("http://localhost:56321/");

            httpClient = new System.Net.Http.HttpClient();
            Api        = new DemoWebApi.Controllers.Client.SuperDemo(httpClient, baseUri);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
 public SuperDemoFixture()
 {
     Api = new DemoWebApi.Controllers.Client.SuperDemo(base.HttpClient);
 }
 public SuperDemoFixture()
 {
     Api = new DemoWebApi.Controllers.Client.SuperDemo(HttpClient, BaseUri);
 }
예제 #7
0
 public SuperDemoFixture()
 {
     HttpClient.BaseAddress = BaseUri;
     Api = new DemoWebApi.Controllers.Client.SuperDemo(HttpClient);
 }