public AdminMainViewModel(IEventAggregator eventAggregator, IAdminService adminService) : base() { _adminService = adminService; _eventAggregator = eventAggregator; ScriptList = new List <ScriptBase>() { }; NewOrganizationRoleCommand = new DelegateCommand( () => { _adminService.CreateNewOrganization(); }); AddPersonRoleCommand = new DelegateCommand( () => { _adminService.CreateNewPersonRole(); }); NewUserRoleCommand = new DelegateCommand( () => { _adminService.CreateNewUserRole(); }); _runMethod = new DelegateCommand( () => { SelectedScript.Run(); }); }
public AdminMainViewModel(IEventAggregator eventAggregator, IAdminService adminService) : base() { _adminService = adminService; _eventAggregator = eventAggregator; ScriptList = new List <ScriptBase>() { new Scripts.BuildTestRecords(), new Scripts.BuildExternalTestRecordsScript(), new Scripts.BuildMethodVersionRequirementReferences(), new Scripts.BuildExternalReportMethodVariantMappingScript(), new Scripts.BuildSubMethodPositionScript(), new Scripts.RemoveMaterialDuplicatesScript() }; NewOrganizationRoleCommand = new DelegateCommand( () => { _adminService.CreateNewOrganization(); }); AddPersonRoleCommand = new DelegateCommand( () => { _adminService.CreateNewPersonRole(); }); NewUserRoleCommand = new DelegateCommand( () => { _adminService.CreateNewUserRole(); }); _runMethod = new DelegateCommand( () => { SelectedScript.Run(); }); }