public void ValidTokenWithoutScheme() { HttpRequestMessage request = mockData.NoSchemeValidTokenRequestMessage(); RequestTransformer test = new RequestTransformer(); string token = test.GetToken(request); Assert.Null(token); }
public void NoTokenInParam() { HttpRequestMessage request = mockData.EmptyAuthorizationParam(); RequestTransformer test = new RequestTransformer(); string token = test.GetToken(request); Assert.Null(token); }
public void ValidToken() { HttpRequestMessage request = mockData.validRequestMessage(); RequestTransformer test = new RequestTransformer(); string mockToken = mockData.VALID_TOKEN_WITHOUT_SCHEME; string tokenFromRequest = test.GetToken(request); Assert.Equal(mockToken, tokenFromRequest); }