Created
March 28, 2018 15:33
-
-
Save Alexei000/40769eed556dd2e2e871d580a16d6220 to your computer and use it in GitHub Desktop.
get all environments test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void GetAllEnvironmentsTest() | |
{ | |
//DEV USER -> Only Enabled | |
ResetData(currentUserId: 1000); | |
var envDataDev1 = EnvironmentService.GetAllEnvironments(applySecurity: true, enabledOnly: true); | |
Assert.IsTrue(envDataDev1.Count == 2, "GetAllEnvironments count failed for enabled only"); | |
//DEV USER -> Enabled and Disabled | |
ResetData(currentUserId: 1000); | |
var envDataDev2 = EnvironmentService.GetAllEnvironments(applySecurity: true, enabledOnly: false); | |
Assert.IsTrue(envDataDev2.Count == 3, "GetAllEnvironments count failed for non-enabled only"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment