Пример #1
0
 public TestBase()
 {
     configuration      = TestHelper.GetApplicationConfiguration(Directory.GetCurrentDirectory());
     Client             = new HttpClient();
     Client.BaseAddress = new Uri(configuration.Url);
     Client.DefaultRequestHeaders.Add("X-AUTH-USER", configuration.Username);
     Client.DefaultRequestHeaders.Add("X-AUTH-TOKEN", configuration.Password);
 }
Пример #2
0
 public Kimai2APIDocsTests()
 {
     this.fakeHttpClient = A.Fake <HttpClient>();
     configuration       = TestHelper.GetApplicationConfiguration(Directory.GetCurrentDirectory());
     Client             = new HttpClient();
     Client.BaseAddress = new Uri(configuration.Url);
     Client.DefaultRequestHeaders.Add("X-AUTH-USER", configuration.Username);
     Client.DefaultRequestHeaders.Add("X-AUTH-TOKEN", configuration.Password);
 }