private static void OnDetailsPropertyChanged(ExecuteServiceCommandViewModel viewModel, object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == IsBusyPropertyName || e.PropertyName == HasBrokenRulesPropertyName)
     {
         viewModel.Command.RaiseCanExecuteChanged();
     }
 }
        public void Initialize_WhenCommandDefinitionIsNull_ThrowsArgumentNullException()
        {
            var commandViewModel = new ExecuteServiceCommandViewModel();
            commandViewModel.Initialize(null, Mock.Create<IDetailsViewModel>());

        }
 public void Initialize_WhenDetailsViewModelIsNull_ThrowsArgumentNullException()
 {
     var commandViewModel = new ExecuteServiceCommandViewModel();
     var commandDefinition = new ExecuteServiceCommandDefinition(string.Empty, string.Empty, Guid.NewGuid(), new List<HasAccessToExecuteCommandValidator.ProcessCommandSecurityConfiguration>(), Guid.NewGuid(), null);
     commandViewModel.Initialize(commandDefinition, null);
 }
 public void PropertiesTests()
 {
     var commandViewModel = new ExecuteServiceCommandViewModel();
     TestsHelper.TestPublicDeclaredPropertiesGetSet(commandViewModel, true);
 }