BloggingSystem.IntegrationTests.UsersControllerIntegrationTests.Logout_WhenNoUserExistsWithSessionKey_ShouldReturnErrorReponse C# (CSharp) Method

Logout_WhenNoUserExistsWithSessionKey_ShouldReturnErrorReponse() private method

        public void Logout_WhenNoUserExistsWithSessionKey_ShouldReturnErrorReponse()
        {
            var sessionKey = new string('A', 50);
            IDictionary<string, string> sessionKeyHeader = new Dictionary<string, string>();
            sessionKeyHeader["X-sessionKey"] = sessionKey;

            var httpResponse = this.httpServer.Put("api/users/logout", null, sessionKeyHeader);

            Assert.AreEqual(HttpStatusCode.BadRequest, httpResponse.StatusCode);
        }