public void NavigationViewModel_SetEnvironmentIdNotTarget()
{
//------------Setup for test--------------------------
_target = false;
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(4, _vm.ExplorerItemModels[0].ChildrenCount);
_mockAuthService.Verify(a => a.IsAuthorized(AuthorizationContext.DeployTo, It.IsAny<string>()));
_mockAuthService.Verify(a => a.IsAuthorized(AuthorizationContext.DeployFrom, It.IsAny<string>()));
}