public void NavigationViewModel_SetEnvironmentId()
{
//------------Setup for test--------------------------
Init(false, true);
_mockAuthService.Setup(a => a.IsAuthorized(AuthorizationContext.DeployTo, It.IsAny<string>())).Returns(false);
_mockAuthService.Setup(a => a.IsAuthorized(AuthorizationContext.DeployFrom, It.IsAny<string>())).Returns(true);
_vm.Environment = _mockEnvironmentModel.Object;
//------------Preconditions---------------------------
Assert.AreEqual(0, _vm.ExplorerItemModels[0].ChildrenCount);
_mockAuthService.Verify(a => a.IsAuthorized(AuthorizationContext.DeployTo, It.IsAny<string>()));
_mockAuthService.Verify(a => a.IsAuthorized(AuthorizationContext.DeployFrom, It.IsAny<string>()));
}