public async void GetOrganisationsForUser()
        {
            Mock <HttpRequest> mockRequest = MoqHelper.CreateMockRequest(_renamedOrganisationJWT);

            var          organisationFunctions = new OrganisationFunctions();
            ObjectResult response = (ObjectResult)await organisationFunctions.GetOrganisationsForUser(mockRequest.Object, logger);

            Assert.True(response.StatusCode == 200);
        }
        public async void UpdateOrganisation()
        {
            var createModel = new
            {
                OrganisationName = "Renamed Organisation"
            };

            Mock <HttpRequest> mockRequest = MoqHelper.CreateMockRequest(createModel, _renamedOrganisationJWT);

            var          organisationFunctions = new OrganisationFunctions();
            ObjectResult response = (ObjectResult)await organisationFunctions.UpdateOrganisation(mockRequest.Object, logger);

            Assert.True(response.StatusCode == 200);
        }
        public async void DeleteOrganisation()
        {
            var credentials = new
            {
                EmailAddress = _emailAddress,
                Password     = _password
            };

            Mock <HttpRequest> mockRequest = MoqHelper.CreateMockRequest(credentials, _renamedOrganisationJWT);

            var          organisationFunctions = new OrganisationFunctions();
            ObjectResult response = (ObjectResult)await organisationFunctions.DeleteOrganisation(mockRequest.Object, logger);

            Assert.True(response.StatusCode == 200);
        }
        public async void ChangeActiveOrganisation()
        {
            var targetOrganisation = new
            {
                OrganisationId = "5450d22f-79bf-445e-9ba0-c5ef923b65d5"
            };

            // this JWT is for "Renamed Organisation"
            // target Organisation is "My Third Organisation"
            // response object should contain a new valid JWT with this OrganisationId in the Claims
            Mock <HttpRequest> mockRequest = MoqHelper.CreateMockRequest(targetOrganisation, _renamedOrganisationJWT);

            var organisationFunctions = new OrganisationFunctions();
            var response = (ObjectResult)await organisationFunctions.ChangeActiveOrganisation(mockRequest.Object, logger);

            Assert.True(response.StatusCode == 200);
        }