Exemplo n.º 1
0
        public void can_delete_user_with_correct_credentials()
        {
            given_request_to(Uris.User(2))
            .Delete()
            .Credentials("username", "password");

            when_retrieving_the_response();

            Response.StatusCode.ShouldBe(200);
        }
Exemplo n.º 2
0
        public void cannot_delete_user_with_wrong_credentials()
        {
            given_request_to(Uris.User(2))
            .Delete()
            .Credentials("username", "wrongpassword");

            when_retrieving_the_response();

            Response.StatusCode.ShouldBe(401);
        }