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); }
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); }