/// <summary> /// Constructor of the ProjectsController. /// </summary> /// <param name="logger"></param> /// <param name="projectsService"></param> public ProjectsController(ILogger logger, IService previewService, IProjects projectsService, IProjectsPreview projectsPreview) { this._logger = logger; this._previewService = previewService; this._projectsService = projectsService; this._projectsPreview = projectsPreview; }
public AddEventPageVM( MainViewModel mainVM, IProjects projects, IApp app) { this.mainVM = mainVM; this.projects = projects; this.app = app; RedirectCommand = new Command(new Action <object>(OnRedirectCommand)); LoadedCommand = new Command(new Action <object>(OnLoadedCommand)); Events = new System.Collections.ObjectModel.ObservableCollection <Controls.ItemSelect.Models.ItemModel>(); ComBoxActions = new System.Collections.ObjectModel.ObservableCollection <ComBoxActionModel>(); AddActionCommand = new Command(new Action <object>(OnAddActionCommand)); AddCommand = new Command(new Action <object>(OnAddCommand)); ActionDialogStateCommand = new Command(new Action <object>(OnActionDialogStateCommand)); ShowActionDialogCommand = new Command(new Action <object>(OnShowActionDialogCommand)); PageLoadedCommand = new Command(new Action <object>(OnPageLoadedCommand)); ActionInvokeCommand = new Command(new Action <object>(OnActionInvokeCommand)); AddACtionDialogVisibility = System.Windows.Visibility.Hidden; PropertyChanged += AddEventPageVM_PropertyChanged; IsActionsTabItemSelected = true; mainVM.IsShowNavigation = false; mainVM.IsShowTitleBar = true; mainVM.Title = "创建自动化方案"; InitEvents(); InitConditions(); InitAcions(); HandleEdit(); }
private void VsLoginOnClick(object sender, RoutedEventArgs e) { _applicationSettings.VsUser = VsUsername.Text; _applicationSettings.VsPassword = VsPassword.Password; _applicationSettings.VsSource = VsSource.Text; _applicationSettings.VsProject = VsProjects.Text; VsProjects.IsEnabled = true; VsTemplates.IsEnabled = true; MigrationFailedTab.IsEnabled = true; SuccessfulTab.IsEnabled = true; _projects = new GetProjects(_applicationSettings); foreach (var project in _projects.Value.Value) { VsProjects.Items.Add(project.Name); } _templates = new GetTemplates(_applicationSettings); foreach (var template in _templates.Value.Value) { VsTemplates.Items.Add(template.Name); } VsLogin.IsEnabled = false; }
public IndexPageVM( MainViewModel mainVM, IProjects projects, IGroup groupService, IApp app) { this.mainVM = mainVM; this.projects = projects; this.groupService = groupService; this.app = app; RedirectCommand = new Command(new Action <object>(OnRedirectCommand)); LoadedCommand = new Command(new Action <object>(OnLoadedCommand)); PropertyChanged += IndexPageVM_PropertyChanged; Projects = new System.Collections.ObjectModel.ObservableCollection <Controls.ItemSelect.Models.ItemModel>(); mainVM.PropertyChanged += MainVM_PropertyChanged; mainVM.IsShowNavigation = true; mainVM.IsShowTitleBar = false; ItemContextMenu = new ContextMenu(); ContainerContextMenu = new ContextMenu(); Init(); CreateItemContextMenu(); CreateContainerContextMenu(); }
/// <summary>Initialisiert eine neue Instanz der <see cref="T:System.Object" />-Klasse.</summary> /// <exception cref="ArgumentNullException"> /// <paramref name="applicationSettings" /> is <see langword="null" />. /// <paramref name="templates" /> is <see langword="null" />. /// <paramref name="projects" /> is <see langword="null" />. /// <paramref name="gitCommands" /> is <see langword="null" />. /// <paramref name="template" /> is <see langword="null" />. /// <paramref name="project" /> is <see langword="null" />. /// </exception> public MigrateRepository(IApplicationSettings applicationSettings, ITemplates templates, IProjects projects, IGitCommands gitCommands, string template, string project) { if (applicationSettings == null) { throw new ArgumentNullException(nameof(applicationSettings)); } if (templates == null) { throw new ArgumentNullException(nameof(templates)); } if (projects == null) { throw new ArgumentNullException(nameof(projects)); } if (gitCommands == null) { throw new ArgumentNullException(nameof(gitCommands)); } if (template == null) { throw new ArgumentNullException(nameof(template)); } if (project == null) { throw new ArgumentNullException(nameof(project)); } _applicationSettings = applicationSettings; _templates = templates; _projects = projects; _gitCommands = gitCommands; _template = template; _project = project; }
public ProjectController( IProjects projects, ILogger <ProjectController> logger) { _logger = logger; _projects = projects; }
public MainViewModel( IServiceProvider serviceProvider, IProjects projects, IGroup group ) { this.serviceProvider = serviceProvider; this.projects = projects; this.group = group; ServiceProvider = serviceProvider; Uri = "IndexPage"; Title = "Project Event"; OnSelectedCommand = new Command(new Action <object>(OnSelectedCommandHandle)); GotoPageCommand = new Command(new Action <object>(OnGotoPageCommand)); SaveGroupCommand = new Command(new Action <object>(OnSaveGroupCommand)); ShowGroupModalCommand = new Command(new Action <object>(OnShowGroupModalCommand)); HideGroupModalCommand = new Command(new Action <object>(OnHideGroupModalCommand)); OnMouseRightButtonUPCommand = new Command(new Action <object>(OnMouseRightButtonUPCommandHandle)); DeleteGroupCommand = new Command(new Action <object>(OnDeleteGroupCommand)); Items = new System.Collections.ObjectModel.ObservableCollection <Controls.Navigation.Models.NavigationItemModel>(); PropertyChanged += MainViewModel_PropertyChanged; InitGroupManagerContextMenu(); InitNavigation(); LoadGroups(); }
public ImportProjectCommand(IConsoleWriter consoleWriter, ICopyFile copyFile, DatabaseSettings databaseSettings, IProjects projects) { _consoleWriter = consoleWriter; _copyFile = copyFile; _databaseSettings = databaseSettings; _projects = projects; }
public EventLogPageVM( IEventLog eventLog, IProjects projects) { this.eventLog = eventLog; this.projects = projects; ReadLogText(); }
public ProjectController( IProjects projects, IEventEmitter eventEmitter, ILogger <ProjectController> logger) { _eventEmitter = eventEmitter; _logger = logger; _projects = projects; }
public ProjectsHealthRiskController( IProjects projects, IProjectHealthRiskVersions healthRiskVersions, ILogger <ProjectsHealthRiskController> logger) { _projects = projects; _healthRiskVersions = healthRiskVersions; _logger = logger; }
public AdminProjectController(HttpContextBase htppbase, IProjects projectInfo, IWebWorker workerService, IUserService userService, IAuthenticationService authenticationService) { this._httpContextBase = htppbase; this._projects = projectInfo ; //this._workerService = workerService; this._userService=userService; this._authenticationService = authenticationService; }
public ProjectEventProcessor(IProjects projects , IUsers users , INationalSocieties nationalSocieties , IProjectHealthRiskVersions projectHealthRiskVersions) { _projects = projects; _users = users; _nationalSocieties = nationalSocieties; _projectHealthRiskVersions = projectHealthRiskVersions; }
public void Setup() { client = new Mock <IProxy>(); request = new Mock <BaseRequest>(new Mock <IProxy>().Object); request.CallBase = true; // Create proxy instance projectsProxy = new AxosoftAPI.NET.Projects(client.Object); projectsProxy = new AxosoftAPI.NET.Projects(request.Object); }
public TestDataGeneratorController( IExtendedReadModelRepositoryFor <HealthRisk> healthRisks, IUsers users, INationalSocieties nationalSocieties, IProjects projects, IEventReplayer eventReplayer) { _healthRisks = healthRisks; _users = users; _nationalSocieties = nationalSocieties; _projects = projects; _eventReplayer = eventReplayer; }
public TestDataGeneratorController( IEventReplayer eventReplayer, IHealthRisks healthRisks, IUsers users, INationalSocieties nationalSocieties, IProjects projects) { _eventReplayer = eventReplayer; _healthRisks = healthRisks; _users = users; _nationalSocieties = nationalSocieties; _projects = projects; }
public ZeplinRestClient(IOptions <ZeplinRestClientOptions> optionsAccessor) { if (optionsAccessor == null) { throw new ArgumentNullException(nameof(optionsAccessor)); } _options = optionsAccessor.Value; _users = RestService.For <IUsers>(ZeplinRestClientConstants.ZeplinBaseUrl); _projects = RestService.For <IProjects>(ZeplinRestClientConstants.ZeplinApiUrl); _screens = RestService.For <IScreens>(ZeplinRestClientConstants.ZeplinApiUrl); Initialise(); }
public App( IEventService eventContainerService, IMainService mainService, IProjects projects, IGroup group, IEventLog eventLog, ISettingsService settingsService ) { this.eventService = eventContainerService; this.mainService = mainService; this.projects = projects; this.group = group; this.eventLog = eventLog; this.settingsService = settingsService; }
public ProjectsEventProcessor(IProjects projects) { _projects = projects; }
public ProjectsController(IProjects projects) { _projects = projects; }
public IsUserNotAVerifierRule(IProjects projects) { _projects = projects; }
public ProjectRules(IProjects projects) { _projects = projects; }
public ProjectHealthRiskRules(IProjects projects, IHealthRisks healthRisks) { _projects = projects; _healthRisks = healthRisks; }
public SetProjectHealthRiskThresholdValidator(IProjects projects) { _projects = projects; RuleFor(v => v.Threshold).GreaterThan(0).WithMessage("The threshold can not be zero or negative"); RuleFor(v => v).Must(HealthRiskBelongsToProject); }
public IsHealthRiskUniqueWithinProjectRule(IProjects projects, IExtendedReadModelRepositoryFor <HealthRisk> healthRisks) { _projects = projects; _healthRisks = healthRisks; }
public ProjectById(IProjects collection) { _collection = collection; }
public ProjectHealthRiskRules(IProjects projects, IExtendedReadModelRepositoryFor <HealthRisk> healthRisks) { _projects = projects; _healthRisks = healthRisks; }
public IsWithinNumberOfHealthRisksLimitRule(IProjects projects, IExtendedReadModelRepositoryFor <HealthRisk> healthRisks) { _projects = projects; _healthRisks = healthRisks; }
public ProjectsController(IProjects _Context) { Context = _Context; }
public ProjectUniqueRule(IProjects projects) { _projects = projects; }
// Get data from view. public PProjects(IProjects view) => this.vProject = view;