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 Initialize_WhenCommandDefinitionIsNull_ThrowsArgumentNullException() { var commandViewModel = new ExecuteServiceCommandViewModel(); commandViewModel.Initialize(null, Mock.Create<IDetailsViewModel>()); }