Exemplo n.º 1
0
                public void WhenAuthorizationHeaderIsMissing_ReturnsNull()
                {
                    _request.Headers.Clear();
                    var actual = _request.GetRawSecurityToken();

                    actual.Should().BeNull();
                }
Exemplo n.º 2
0
                public void GivenNullRequest_ThrowsArgumentNullException()
                {
                    Microsoft.AspNetCore.Http.HttpRequest nullRequest = null;
                    Action act = () => nullRequest.GetRawSecurityToken();

                    act.Should().Throw <ArgumentNullException>();
                }