0
OriAssurant created
Hi Abp Zero,
We have a custom feature AppFeatures.EnableUserVisibilityRules, and I would like to make the feature value to be false when running the test project. Is there a way to do it?
context.Create( AppFeatures.EnableUserVisibilityRules, defaultValue: "true", displayName: L("EnableUserVisibilityRules"), inputType: new CheckboxInputType() );
Thank you,
2 Answer(s)
-
0
Hi,
You can use substitution like we do in this test method https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/test/Abp.TestBase.SampleApplication.Tests/Features/FeatureSystem_Tests.cs#L41.
-
0
Thank you so much, it works!