Пример #1
0
        public async void OnGet_AuthenticatedButNotAuthorized_ExpectUnauthorizedError()
        {
            //Arrange
            var client = _appFactory.CreateAuthenticatedClientWithoutClaim();

            //Act
            var response = await client.GetAsync("/");

            //Assert
            Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
        }