Skip to content

Instantly share code, notes, and snippets.

@Alexei000
Created March 28, 2018 15:33
Show Gist options
  • Save Alexei000/40769eed556dd2e2e871d580a16d6220 to your computer and use it in GitHub Desktop.
Save Alexei000/40769eed556dd2e2e871d580a16d6220 to your computer and use it in GitHub Desktop.
get all environments test
[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