public void EnsureInternalOrOrganisationAccess_ThrowsSecurityException_WhenUserHasNoClaims()
        {
            // Arrange
            Guid organisationID = new Guid("5F3069F4-EDA3-43A3-BDD8-726028CDABB0");

            IUserContext userContext = A.Fake <IUserContext>();
            WeeeContext  weeeContext = MakeFakeWeeeContext(userContext);

            WeeeAuthorization authorization = new WeeeAuthorization(weeeContext, userContext);

            // Act
            Action action = () => authorization.EnsureInternalOrOrganisationAccess(organisationID);

            // Assert
            Assert.Throws(typeof(SecurityException), action);
        }
        public void EnsureInternalOrOrganisationAccess_ThrowsSecurityException_WhenUserHasNoClaims()
        {
            // Arrange
            Guid organisationID = new Guid("5F3069F4-EDA3-43A3-BDD8-726028CDABB0");

            IUserContext userContext = A.Fake<IUserContext>();
            WeeeContext weeeContext = MakeFakeWeeeContext(userContext);

            WeeeAuthorization authorization = new WeeeAuthorization(weeeContext, userContext);

            // Act
            Action action = () => authorization.EnsureInternalOrOrganisationAccess(organisationID);

            // Assert
            Assert.Throws(typeof(SecurityException), action);
        }