mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
599 B
24 lines
599 B
using Shouldly;
|
|
using Xunit;
|
|
|
|
namespace Volo.Abp.GlobalFeatures
|
|
{
|
|
public class GlobalFeatureManager_Tests : GlobalFeatureTestBase
|
|
{
|
|
private readonly GlobalFeatureManager _featureManager;
|
|
|
|
public GlobalFeatureManager_Tests()
|
|
{
|
|
_featureManager = new GlobalFeatureManager();
|
|
}
|
|
|
|
[Fact]
|
|
public void Enable_Feature_By_Name()
|
|
{
|
|
_featureManager.IsEnabled("Feature1").ShouldBeFalse();
|
|
_featureManager.Enable("Feature1");
|
|
_featureManager.IsEnabled("Feature1").ShouldBeTrue();
|
|
}
|
|
}
|
|
}
|