Accounts.Web.Tests.Controllers.AccountControllerTest.WhenAccountLogout C# (CSharp) Method

WhenAccountLogout() private method

private WhenAccountLogout ( ) : void
return void
        public async void WhenAccountLogout()
        {
            // Act
            var response = await _client.GetAsync("/Account/LogOff");

            // Assert
            Assert.True(response.StatusCode == System.Net.HttpStatusCode.Found);
            Assert.Equal(response.Headers.Location.AbsolutePath, "/Account/Login");
        }