public ContactController(IAccountQueries accountQueries, IContactQueries contactQueries, IMapperForAccount mapperForAccount, IMapperForContact mapperForContact) { _accountQueries = accountQueries; _contactQueries = contactQueries; _mapperForAccount = mapperForAccount; _mapperForContact = mapperForContact; }
public CreateAgreementWindowVm(SessionInfos sessionInfos, IApplicationService applicationService, IContactQueries contactQueries, List <SeatItem> selectedPlaces, IComputerService computerService) { _sessionInfos = sessionInfos ?? throw new ArgumentNullException(nameof(sessionInfos)); _applicationService = applicationService ?? throw new ArgumentNullException(nameof(applicationService)); _contactQueries = contactQueries ?? throw new ArgumentNullException(nameof(contactQueries)); _selectedPlaces = selectedPlaces ?? throw new ArgumentNullException(nameof(selectedPlaces)); _computerService = computerService ?? throw new ArgumentNullException(nameof(computerService)); AddContactCommand = new RelayCommandAsync(ExecuteAddContactAsync); UnknowTypeAgreementCommand = new RelayCommand(ExecuteUnknowTypeConvention); SetValiderCommandCanExecute(() => SelectedContact != null && AgreementType != AgreementType.Unknow); }
public InsertCompanyCommandHandler(ICompanyRepository companyRepository, ICompanyQueries companyQueries, IAddressRepository addressRepository, IAddressQueries addressQueries, IContactRepository contactRepository, IContactQueries contactQueries, IStorageFileProvider storageFile, IScheduleActionRepository scheduleActionRepository) { this.companyRepository = companyRepository; this.companyQueries = companyQueries; this.addressRepository = addressRepository; this.addressQueries = addressQueries; this.contactRepository = contactRepository; this.contactQueries = contactQueries; this.storageFile = storageFile; this.scheduleActionRepository = scheduleActionRepository; }
public ManageAgreementWindowVm(Guid agreementId, ISeatQueries seatQueries, IApplicationService applicationService, IContactQueries contactQueries, IAgreementQueries agreementQueries, IComputerService computerService, IDocumentCreator documentCreator, IDocumentRepository documentRepository) { _agreementId = agreementId; _applicationService = applicationService ?? throw new ArgumentNullException(nameof(applicationService)); _seatQueries = seatQueries ?? throw new ArgumentNullException(nameof(seatQueries)); _contactQueries = contactQueries ?? throw new ArgumentNullException(nameof(contactQueries)); _documentCreator = documentCreator ?? throw new ArgumentNullException(nameof(documentCreator)); _documentRepository = documentRepository ?? throw new ArgumentNullException(nameof(documentRepository)); _agreementQueries = agreementQueries ?? throw new ArgumentNullException(nameof(agreementQueries)); _computerService = computerService ?? throw new ArgumentNullException(nameof(computerService)); ChooseDocumentCommand = new RelayCommand(ExecuteChooseDocumentAsync); PrintCommand = new RelayCommandAsync(ExecutePrintAsync); SendMailCommand = new RelayCommandAsync(ExecuteSendEmailAsync); OpenSignedDocumentCommand = new RelayCommandAsync(ExecuteOpenSignedDocumentAsync); ReassignSignedDocumentCommand = new RelayCommand(ExecuteReassignSignedDocument); RemindAgreementCommand = new RelayCommandAsync(ExecuteRemingAgreementAsync); SavePricesCommand = new RelayCommandAsync(ExecuteSavePricesAsync, () => CanSavePrices); SetValiderCommandCanExecute(() => File.Exists(DocumentPath)); }
public ContactsController(IEventQueriesFactory queriesFactory, IEventActionsFactory actionsFactory, IMapper mapper) { _mapper = mapper; _contactsQueries = queriesFactory.ContactQueries(); _contactsActions = actionsFactory.ContactActions(); }
public ContactListVm(IApplicationService applicationService, IContactQueries contactQueries) : base(applicationService) { _contactQueries = contactQueries ?? throw new ArgumentNullException(nameof(contactQueries)); }
public HomeController(IAccountQueries accountQueries, IContactQueries contactQueries, IMapperForHome mapperForHome) { _accountQueries = accountQueries; _mapperForHome = mapperForHome; _contactQueries = contactQueries; }