public void IssueErrorAndMessageShouldSuccessfullyDeactivateAdminPrivilegesFail()
        {
            // Arrange

            // Act
            var result     = sutPromoteUserFailure.DeactivateAdminPrivileges(1, 3, baseRequest);
            var message    = ((UserResult)((NotFoundObjectResult)result.Result).Value).Message;
            var statusCode = ((NotFoundObjectResult)result.Result).StatusCode;

            // Assert
            Assert.That(result.Result, Is.InstanceOf <ActionResult>());
            Assert.That(message, Is.EqualTo("Status Code 404: Deactivation of Admin Privileges Failed"));
            Assert.That(statusCode, Is.EqualTo(404));
        }
        public void SuccessfullyDeactivateAdminPrivileges()
        {
            // Arrange

            // Act
            var result     = sutSuccess.DeactivateAdminPrivileges(1, 3, baseRequest);
            var message    = ((UserResult)((OkObjectResult)result.Result).Value).Message;
            var user       = ((UserResult)((OkObjectResult)result.Result).Value).User;
            var statusCode = ((OkObjectResult)result.Result).StatusCode;

            // Assert
            Assert.That(result.Result, Is.InstanceOf <ActionResult>());
            Assert.That(message, Is.EqualTo("Status Code 200: Admin Privileges Deactivated"));
            Assert.That(statusCode, Is.EqualTo(200));
            Assert.That(user, Is.InstanceOf <User>());
        }