public bool IsUserAuthorizedToAccessFeature(LicenseControlledFeatures feature) { return(_authorizedFeatures.Contains(feature)); }
private void AddLicenseControlledFeature(LicenseControlledFeatures feature) { _authorizedFeatures.Add(feature); }
private void AddAccessToFeature(LicenseControlledFeatures feature) { _licenseControlledFeatures.Add(feature); }
public void AuthorizationService_IsUserAuthorizedToAccessFeature(LicenseControlledFeatures feature, bool expected) { Assert.AreEqual(expected, _authService.IsUserAuthorizedToAccessFeature(feature)); }
public void AuthorizationService_IsUserAuthorizedToAccessFeature_Module1Only(LicenseControlledFeatures feature, bool expected) { Assert.Equal(expected, _fixture.AppContainer.AuthorizationService.IsUserAuthorizedToAccessFeature(feature)); }