예제 #1
0
        public ContatoTest(ITestOutputHelper output, TestServerStartup fixture, AuthenticationFixture auth)
        {
            _output  = output;
            _fixture = fixture;
            _auth    = auth;

            client = fixture.Client;
            client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", _auth.Token);
        }
예제 #2
0
    public AuthenticationFixture(TestServerStartup fixture)
    {
        _fixture = fixture;

        Token = GetUserToken();
    }