public bool IsUserAuthorizedToAccessFeature(LicenseControlledFeatures feature)
 {
     return(_authorizedFeatures.Contains(feature));
 }
 private void AddLicenseControlledFeature(LicenseControlledFeatures feature)
 {
     _authorizedFeatures.Add(feature);
 }
Esempio n. 3
0
 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));
 }