public EmployeeViewModel( IEmployeeDataProvider provider, IModeDataValidation <Employee> validation = default) { _provider = provider; _validation = validation; }
public DocumentGenerationManager(IRequestDataProvider requestDataProvider, IOfferDataProvider offerDataProvider, ICustomerDataProvider customerDataProvider, IContactDataProvider contactDataProvider, IOrderDataProvider orderDataProvider, IInvoiceDataProvider invoiceDateProvider, IDepositInvoiceDataProvider depositInvoiceDataProvider, ITelephoneDataProvider telephoneDataProvider, IVisitDataProvider visitDataProvider, IEmployeeDataProvider employeeDataProvider, IOptions <DocumentGenerationConfiguration> documentGenerationConfiguration, ILogger <DocumentGenerationManager> logger) { _requestDataProvider = requestDataProvider; _offerDataProvider = offerDataProvider; _orderDataProvider = orderDataProvider; _invoiceDateProvider = invoiceDateProvider; _depositInvoiceDateProvider = depositInvoiceDataProvider; _customerDataProvider = customerDataProvider; _contactDataProvider = contactDataProvider; _telephoneDataProvider = telephoneDataProvider; _visitDataProvider = visitDataProvider; _employeeDataProvider = employeeDataProvider; _httpClient = new HttpClient(); _documentGenerationConfig = documentGenerationConfiguration.Value; _logger = logger; _offerStorageLocation = FileUtils.EnsureStorageDirectory(_documentGenerationConfig.OfferStorageLocation); _invoiceStorageLocation = FileUtils.EnsureStorageDirectory(_documentGenerationConfig.InvoiceStorageLocation); _productionTicketStorageLocation = FileUtils.EnsureStorageDirectory(_documentGenerationConfig.ProductionTicketStorageLocation); _generatedCertificateStorageLocation = FileUtils.EnsureStorageDirectory(_documentGenerationConfig.GeneratedCertificateStorageLocation); _receivedCertificateStorageLocation = FileUtils.EnsureStorageDirectory(_documentGenerationConfig.ReceivedCertificateStorageLocation); }
public WorkingHourManager(IWorkingHourDataProvider workingHourDataProvider, IInvoiceDataProvider invoiceDataProvider, IEmployeeDataProvider employeeDataProvider, ILogger <InvoiceManager> logger) { _workingHourDataProvider = workingHourDataProvider; _invoiceDataProvider = invoiceDataProvider; _employeeDataProvider = employeeDataProvider; _logger = logger; }
public void Setup() { _httpResponseCreator = Mock.Of <IHttpResponseCreator>(); _employeeDataProvider = Mock.Of <IEmployeeDataProvider>(); _traceWriter = new TraceWriterFake(); InjectionFactory.UseIHttpResponseCreator(_httpResponseCreator); InjectionFactory.UseIEmployeeDataProvider(_employeeDataProvider); }
public GraphApiService(IAuthenticationProvider authenticationProvider, IOptions <CalendarConfiguration> calendarConfiguration, IEmployeeDataProvider employeeDataProvider, ILogger <GraphApiService> logger) { _client = new GraphServiceClient(authenticationProvider); _calendarConfig = calendarConfiguration.Value; _employeeDataProvider = employeeDataProvider; _logger = logger; if (_calendarConfig.PostponeWithYears == null) { _calendarConfig.PostponeWithYears = 0; } }
public MainViewModel(IEmployeeDataProvider dataProvider){ _dataProvider = dataProvider; Employees = new ObservableCollection<Employee>(); LoadData(); ActivatedWithFilterButton = new BehaviorSubject<bool>(true); CanOpenStatus = new BehaviorSubject<bool>(false); IsPopupOpen = new BehaviorSubject<bool>(false); CheckPopupStatusToggle = new BehaviorSubject<bool>(true); FilterButtonTimesClicked = new BehaviorSubject<int>(0); CanManuallyOpenPopup = new ObservableAsPropertyHelper<bool>(CheckPopupStatusToggle, _ => { ManuallyOpenPopupStatusChanged(); }, false, RxApp.MainThreadScheduler); CanManuallyClosePopup = new ObservableAsPropertyHelper<bool>(CheckPopupStatusToggle, _ => { ManuallyOpenPopupStatusChanged(); }, false, RxApp.MainThreadScheduler); PopupOpenedTimesCounter = new ObservableAsPropertyHelper<int>(FilterButtonTimesClicked, _ => { CheckToogleFilterPopupVisibility(); }, 0, RxApp.MainThreadScheduler); // Apply the line below only when using NoXaml binaries // this.DefaultStyleKey=typeof(MyFilteringControl); }
public PeriodFunctions(PeriodProperties Period, IEmployeeDataProvider EmployeeService, IOrganChartDataProvider OrganchartService) { _Period.PeriodID = Period.PeriodID; _Period.PeriodName = Period.PeriodName; _Period.PeriodStateID = Period.PeriodID; _Period.PeriodStateName = Period.PeriodStateName; _IsInsertable = Period.PeriodStateID == 2; //IEmployeeDataProvider EmployeeService; // _EmployeeService = new EmployeeConverter(EmployeeService,); //IOrganChartDataProvider OrganchartService; _OrganchartService = new OrganChartConverter(OrganchartService); }
public MainViewModel(IEmployeeDataProvider dataProvider) { _dataProvider = dataProvider; Employees = new ObservableCollection <Employee>(); LoadData(); ActivatedWithFilterButton = new BehaviorSubject <bool>(true); CanOpenStatus = new BehaviorSubject <bool>(false); IsPopupOpen = new BehaviorSubject <bool>(false); CheckPopupStatusToggle = new BehaviorSubject <bool>(true); FilterButtonTimesClicked = new BehaviorSubject <int>(0); CanManuallyOpenPopup = new ObservableAsPropertyHelper <bool>(CheckPopupStatusToggle, _ => { ManuallyOpenPopupStatusChanged(); }, false, RxApp.MainThreadScheduler); CanManuallyClosePopup = new ObservableAsPropertyHelper <bool>(CheckPopupStatusToggle, _ => { ManuallyOpenPopupStatusChanged(); }, false, RxApp.MainThreadScheduler); PopupOpenedTimesCounter = new ObservableAsPropertyHelper <int>(FilterButtonTimesClicked, _ => { CheckToogleFilterPopupVisibility(); }, 0, RxApp.MainThreadScheduler); // Apply the line below only when using NoXaml binaries // this.DefaultStyleKey=typeof(MyFilteringControl); }
public InterventionManager(IInterventionDataProvider interventionDataProvider, ICustomerDataProvider customerDataProvider, IContactDataProvider contactDataProvider, IBuildingDataProvider buildingDataProvider, IInvoiceDataProvider invoiceDataProvider, IOrderDataProvider orderDataProvider, IRequestDataProvider requestDataProvider, IWayOfEntryDataProvider wayOfEntryDataProvider, IEmployeeDataProvider employeeDataProvider, IDocumentGenerationManager documentGenerationManager, ILogger <InterventionManager> logger) { _interventionDataProvider = interventionDataProvider; _customerDataProvider = customerDataProvider; _contactDataProvider = contactDataProvider; _buildingDataProvider = buildingDataProvider; _invoiceDataProvider = invoiceDataProvider; _orderDataProvider = orderDataProvider; _requestDataProvider = requestDataProvider; _wayOfEntryDataProvider = wayOfEntryDataProvider; _employeeDataProvider = employeeDataProvider; _documentGenerationManager = documentGenerationManager; _logger = logger; }
public OrderManager(IOrderDataProvider orderDataProvider, IInvoiceDataProvider invoiceDataProvider, ICustomerDataProvider customerDataProvider, IContactDataProvider contactDataProvider, IBuildingDataProvider buildingDataProvider, IOfferDataProvider offerDataProvider, IVatRateDataProvider vatRateDataProvider, IDepositDataProvider depositDataProvider, IDepositInvoiceDataProvider depositInvoiceDataProvider, IEmployeeDataProvider employeeDataProvider, IDocumentGenerationManager documentGenerationManager, ILogger <OrderManager> logger) { _orderDataProvider = orderDataProvider; _customerDataProvider = customerDataProvider; _contactDataProvider = contactDataProvider; _buildingDataProvider = buildingDataProvider; _offerDataProvider = offerDataProvider; _invoiceDataProvider = invoiceDataProvider; _depositDataProvider = depositDataProvider; _depositInvoiceDataProvider = depositInvoiceDataProvider; _vatRateDataProvider = vatRateDataProvider; _employeeDataProvider = employeeDataProvider; _documentGenerationManager = documentGenerationManager; _logger = logger; }
public DocumentGenerationManager(IRequestDataProvider requestDataProvider, IInterventionDataProvider interventionDataProvider, IOfferDataProvider offerDataProvider, ICustomerDataProvider customerDataProvider, IContactDataProvider contactDataProvider, IBuildingDataProvider buildingDataProvider, IOrderDataProvider orderDataProvider, IInvoiceDataProvider invoiceDataProvider, IDepositInvoiceDataProvider depositInvoiceDataProvider, IEmployeeDataProvider employeeDataProvider, IFileStorageService fileStorageService, IOptions <DocumentGenerationConfiguration> documentGenerationConfiguration, ILogger <DocumentGenerationManager> logger) { _requestDataProvider = requestDataProvider; _interventionDataProvider = interventionDataProvider; _offerDataProvider = offerDataProvider; _orderDataProvider = orderDataProvider; _invoiceDataProvider = invoiceDataProvider; _depositInvoiceDataProvider = depositInvoiceDataProvider; _customerDataProvider = customerDataProvider; _contactDataProvider = contactDataProvider; _buildingDataProvider = buildingDataProvider; _employeeDataProvider = employeeDataProvider; _httpClient = new HttpClient(); _fileStorageService = fileStorageService; _documentGenerationConfig = documentGenerationConfiguration.Value; _logger = logger; _visitReportStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.VisitReportStorageLocation); _interventionReportStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.InterventionReportStorageLocation); _offerStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.OfferStorageLocation); _orderStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.OrderStorageLocation); _deliveryNoteStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.DeliveryNoteStorageLocation); _invoiceStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.InvoiceStorageLocation); _generatedProductionTicketStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.GeneratedProductionTicketStorageLocation); _receivedProductionTicketStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.ReceivedProductionTicketStorageLocation); _generatedCertificateStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.GeneratedCertificateStorageLocation); _receivedCertificateStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.ReceivedCertificateStorageLocation); _certificateUploadSourceLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.CertificateUploadSourceLocation); }
public MainViewModel(IEmployeeDataProvider employeeDataProvider) { _employeeDataProvider = employeeDataProvider; }
public CreateEmployeeController(IEmployeeDataProvider dataProvider, LoggerBase logger) { _dataProvider = dataProvider; _logger = logger; }
public EmployeeController(IEmployeeDataProvider DataProvider) { _provider = DataProvider; }
public EmployeeConverter(IEmployeeDataProvider employeeDataProvider, IEmployeeServiceWrapper employeeService, IEventPublisher publisher) { this.employeeDataProvider = employeeDataProvider; this.employeeService = employeeService; this.publisher = publisher; }
public GetAllEmployeesController(IEmployeeDataProvider dataProvider, LoggerBase logger) { _dataProvider = dataProvider; _logger = logger; }
public EmployeeApiController(IEmployeeDataProvider employeesData) { _employeesData = employeesData ?? throw new ArgumentNullException(nameof(employeesData)); }
public MainViewModel(IEmployeeDataProvider employeeDataProvider) { _employeeDataProvider = employeeDataProvider; LoadCommand = new DelegateCommand(Load); //Take tw logic to excute , Not to Execute }
public EmployeeController(IEmployeeDataProvider employeeDataProvider) { _EmployeeData = employeeDataProvider; }
public EmployeeController(IEmployeeDataProvider employeeData) { _employeeData = employeeData; }
public EmployeeViewModel(Employee employee, IEmployeeDataProvider employeeDataProvider) { _employee = employee; _employeeDataProvider = employeeDataProvider; }
public EmployeeManager(IEmployeeDataProvider employeeDataProvider, ILogger <EmployeeManager> logger) { _employeeDataProvider = employeeDataProvider; _logger = logger; }
public MainViewModel(IEmployeeDataProvider employeeDataProvider) { _employeeDataProvider = employeeDataProvider; LoadCommand = new DelegateCommand(Load); }
public EmployeesController(IEmployeeDataProvider dataContext) { _db = dataContext; }
public EmployeeViewModel(Employee employee, IEmployeeDataProvider employeeDataProvider) { _employee = employee; _employeeDataProvider = employeeDataProvider; SaveCommand = new DelegateCommand(Save, () => CanSave); }
public EmployeeProvider(IEmployeeDataProvider employeeData) { EmployeeData = employeeData; }