public TaxCalculationListVm(bool isRectifying) { this.isRectifying = isRectifying; this.Title = ""; SaveCommand = new DelegateCommand(Save, CanSave); CreateCommand = new DelegateCommand(Create, CanCreate); DeleteCommand = new DelegateCommand(Delete, CanDelete); EditCommand = new DelegateCommand(Edit, CanEdit); this.ModifyCommand = new DelegateCommand(Modify, CanModify); this.EditIndicatorsCommand = new DelegateCommand(EditIndicators, CanEditIndicators); this.ViewCommand = new DelegateCommand(View, CanView); this.FilterCommand = new DelegateCommand(Filter, CanFilter); this.ClearFiltersCommand = new DelegateCommand(ClearFilters, CanClearFilters); this.ChangeReportNameCommand = new DelegateCommand(ChangeReportName, CanChangeReportName); Mediator.Instance.Register(MediatorActionType.RefreshList, RefreshList); Mediator.Instance.Register(MediatorActionType.SetRemainingDays, SetRemainingDays); taxCalculationRepository = new TaxCalculationsRepository(); companyRepository = new CompanyRepository(); LoadInitialData(); //if no company exists, do not continue loading data if (SelectedCompany == null) { return; } RefreshList(null); RemainingDays = CurrentRemainingDaysMessage; }
public CompanyBusinessLogic(ICompanyRepository repository, IEmployeeRepository empRepository, IProjectRepository projectRepository, IPersonRepository personRepository) { _repository = repository; _empRepository = empRepository; _projectRepository = projectRepository; _personRepository = personRepository; }
public ContactFolderContactsController(IContactFolderRepository contactfolderRepository, ICompanyRepository companyRepository, IContactRepository contactRepository, IContactFolderContactRepository contactfoldercontactRepository) { this.contactfolderRepository = contactfolderRepository; this.companyRepository = companyRepository; this.contactRepository = contactRepository; this.contactfoldercontactRepository = contactfoldercontactRepository; }
public UserProfileController() { var userrapo = new UserRepository(); _userService = new UserService(userrapo); _repository = new CompanyRepository(); _productGroupRepository = new ProductGroupRepository(); }
public RequisitionClientInfoesController(IRequisitionRepository requisitionRepository, ICompanyRepository companyRepository, ISalaryRateTypeRepository salaryratetypeRepository, IRequisitionClientInfoRepository requisitionclientinfoRepository) { this.requisitionRepository = requisitionRepository; this.companyRepository = companyRepository; this.salaryratetypeRepository = salaryratetypeRepository; this.requisitionclientinfoRepository = requisitionclientinfoRepository; }
public CandleStickSignalManagementService(IDataPointRepository datapointsRepository, ICandleStickSignalRepository candleStickSignalRepository, ICompanyRepository companyRepository, ICandlestickPatternRecogniserFactory candlestickPatternFactory) { this.datapointsRepository = datapointsRepository; this.candleStickSignalRepository = candleStickSignalRepository; this.companyRepository = companyRepository; this.candlestickPatternFactory = candlestickPatternFactory; }
public StateController(ISignboardRepository signboardRepository, IDeviceRepository deviceRepository, ICompanyRepository companyRepository, ILoggingComponent loggingComponent) { SignboardRepository = signboardRepository; DeviceRepository = deviceRepository; CompanyRepository = companyRepository; LoggingComponent = loggingComponent; }
public ReportService(ICompanyRepository CompanyRepository,IEmployeeRepository employeeRespository, IExperienceRepository experienceRepository,ITerminateRepository terminateRepository) { this.companyRepository = CompanyRepository; this.employeeRespository = employeeRespository; this.experienceRepository = experienceRepository; this.terminateRepository = terminateRepository; }
static CompanyService() { CompanyService.unitOfWork = new UnitOfWork(); CompanyService.repository = RepositoryFactory.GetRepository<ICompanyRepository, Company>(CompanyService.unitOfWork); }
public UnitOfWork(MessageBoardContext context,ITopicRepository topics,ICompanyRepository companies,IImageRepository images) { _context = context; _topics = topics; _companies = companies; _images = images; }
public CompanyEmailsController(ICompanyRepository companyRepository, IContactRepository contactRepository, IUserRepository userRepository, ICompanyEmailRepository companyemailRepository) { this.companyRepository = companyRepository; this.contactRepository = contactRepository; this.userRepository = userRepository; this.companyemailRepository = companyemailRepository; }
public HomeController() { this._repository = new CompanyRepository(); _productRepository = new ProductRepository(); _productCompanyRepo = new ProductCompanyRepository(); _productGroupRepository = new ProductGroupRepository(); }
public RegisterNewCompanyCommand(ICompanyFactory factory, Notification notification, ICompanyRepository companies) { this.factory = factory; this.notification = notification; this.companies = companies; }
public MProjectController(IMProjectRepository repoMProject, ILogRepository repoLog, ICompanyRepository repoCompany,IContractorRepository repoContractor,IProjectRepository repoProject) : base(repoLog) { RepoMProject = repoMProject; RepoCompany = repoCompany; RepoContractor = repoContractor; RepoProject = repoProject; }
public CompanyAddressesController(ICompanyRepository companyRepository, ICompanyAddressCategoryRepository companyaddresscategoryRepository, ICountryRepository countryRepository, IStateRepository stateRepository, ICompanyAddressRepository companyaddressRepository) { this.companyRepository = companyRepository; this.companyaddresscategoryRepository = companyaddresscategoryRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.companyaddressRepository = companyaddressRepository; }
public ProductService(IProductRepository repository) { _repository = repository; _companyRepository = new CompanyRepository(); _productCompanyRepo = new ProductCompanyRepository(); _productgroupRepo = new ProductGroupRepository(); _productScheduleRepo = new ProductScheduleRepository(); }
public AddNewIncomeCommand(IGetTheCurrentCustomerQuery query, Notification notification, IIncomeRepository all_income, ICompanyRepository companys) { this.query = query; this.notification = notification; this.all_income = all_income; this.companys = companys; }
public static void Initialize () { DependencyService.Register<IUnitOfWork> (UnitOfWork = new MemoryUnitOfWork()); DependencyService.Register<ICompanyRepository> (CompanyRepository = new MemoryCompanyRepository()); CompanyRepository.SetUnitOfWork (UnitOfWork); }
public CompanyServices(ICompanyRepository companyRepository, ICompanyTypeRepository companyTypeRepository, IUnitOfWork unitOfWork) { _companyRepository = companyRepository; _companyTypeRepository = companyTypeRepository; _unitOfWork = unitOfWork; }
public CompanyDataViewModel() { this.Title = "Detalii despre companie"; SaveCommand = new DelegateCommand(Save, CanSave); companyRepository = new CompanyRepository(); LoadData(); }
public IndexViewModel() { this._repository = new CompanyRepository(); this._productRepository = new ProductRepository(); this._productCompanyRepo = new ProductCompanyRepository(); this._db = new OrderMgntEntities(); this.Companylist = new List<Company>(); this.ProductGrouplist = new List<ProductGroup>(); }
public UserController() { var userrapo = new UserRepository(); _userService = new UserService(userrapo); _repository = new CompanyRepository(); _productGroupRepository = new ProductGroupRepository(); var productschedrapo = new ProductScheduleRepository(); _repositoryschedule = new ProductScheduleService(productschedrapo); }
public StaffController() { var userrapo = new UserRepository(); _userService = new UserService(userrapo); _repository = new CompanyRepository(); _productGroupRepository = new ProductGroupRepository(); var orderrapo = new OrderRepository(); _orderService = new OrderService(orderrapo); }
public CreateEditCompanyVm() { Mediator.Instance.Register(MediatorActionType.SetEntityToEdit, SetEntityToEdit); SaveCommand = new DelegateCommand(Save, CanSave); this.CancelCommand = new DelegateCommand(Cancel, CanCancel); companyRepository = new CompanyRepository(); LoadData(); }
public ExperienceService(IInsuranceRepository insuranceRepository, IExperienceRepository experienceRepository, IEmployeeRepository employeeRepository,ICompanyRepository companyRepository,IPositionRepository positionRepository, IUnitOfWork unitOfWork) { this.experienceRepository = experienceRepository; this.employeeRepository = employeeRepository; this.companyRepository = companyRepository; this.positionRepository = positionRepository; this.insuranceRepository = insuranceRepository; this.unitOfWork = unitOfWork; }
public CompanyController(IIndustryRepository industryRepository, ICountryRepository countryRepository, IStateRepository stateRepository, ICompanyOwnerRepository companyownerRepository, ICompanyStatusCategoryRepository companystatuscategoryRepository, IUserRepository userRepository, ICompanyRepository companyRepository) { this.industryRepository = industryRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.companyownerRepository = companyownerRepository; this.companystatuscategoryRepository = companystatuscategoryRepository; this.userRepository = userRepository; this.companyRepository = companyRepository; }
public ContactsController(ICompanyRepository companyRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IContactProfessionTypeRepository contactprofessiontypeRepository, IRatingScaleRepository ratingscaleRepository, IUserRepository userRepository, IContactRepository contactRepository) { this.companyRepository = companyRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.contactprofessiontypeRepository = contactprofessiontypeRepository; this.ratingscaleRepository = ratingscaleRepository; this.userRepository = userRepository; this.contactRepository = contactRepository; }
/// <summary> ///In constructor, we can get needed classes/interfaces. ///They are sent here by dependency injection system automatically. /// </summary> public CompanyAppService(ICompanyRepository companyRepository, MultiTenancy.TenantManager tenantRepository, Users.UserManager userRepository, ICompanyConfigRepository companyConfigRepository) { _companyRepository = companyRepository; _tenantRepository = tenantRepository; _userRepository = userRepository; _companyConfigRepository = companyConfigRepository; }
public void SetUp() { // this._companyRepository = new CompanyRepository(); var connectionString = ConfigurationManager.ConnectionStrings["appDatabase"]; if (connectionString!=null) { _connectionString= connectionString.ConnectionString; } this._companyRepository = new CompanyRepository(_connectionString); }
public AccountService(IAccountRepository accountRepository, IContactRepository contactRepository, ICompanyRepository companyRepository, INumberGeneratorService generatorService, IInvoiceRepository invoiceRepository, IInvoicingService invoicingService) { _accountRepository = accountRepository; _contactRepository = contactRepository; _companyRepository = companyRepository; _generator = generatorService; _invoiceRepository = invoiceRepository; _invoicingService = invoicingService; }
public CompanyService(ICompanyRepository companyRepository) { this.companyRepository = companyRepository; }
/* * Startup sınıfındaki ConfigureServices metodunda hatırlanacağı üzer ICompanyRepository için bir kayıt işlemi yapılmıştı. * Oradaki tanıma göre çalışma zamanında buraya bir CompanyRepository nesnesi gelecek. */ public CompanyController(ILogger <CompanyController> logger, ICompanyRepository repository) { _logger = logger; _repository = repository; }
public AuthenticationController(ITokenInfoRepository tokenRepository, IUserRepository userRepository, IUnitOfWork unitOfWork, ICompanyRepository companyRepository, IAuthenticationService authenticationService) { this.TokenRepository = tokenRepository; this.UserRepository = userRepository; this.UnitOfWork = unitOfWork; this.CompanyRepository = companyRepository; this.AuthenticationService = authenticationService; }
public CompanyService(ICompanyRepository repository, IUnitOfWork unitOfWork, IMapper mapper) { this.repository = repository; this.unitOfWork = unitOfWork; this.mapper = mapper; }
public CompanyAppService(IRepositoryBase <RCModel.Company> _companyRepo, ICompanyRepository <RCModel.Company> _companyRepo2) { this.companyRepoExtended = _companyRepo2; this.companyRepoBase = _companyRepo; }
public AnimalController(ICompanyRepository companyRepository, IAnimalRepository animalRepository) { this.companyRepository = companyRepository; this.animalRepository = animalRepository; }
public UserCommandService(ICompanyRepository companyRepository, UserManager <Core.Model.User> userManager) { _companyRepository = companyRepository; _userManager = userManager; }
public CompanyCollectionsController(ICompanyRepository companyRepository, IMapper mapper) { this._companyRepository = companyRepository ?? throw new ArgumentNullException(nameof(companyRepository)); this._mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public CompanyService(ICompanyRepository companyRepository, IMapper mapper) { _companyRepository = companyRepository; _mapper = mapper; }
public CrudCompanyService(ICompanyRepository baseRepository) : base(baseRepository) { }
public CompanyController(ICompanyRepository repository) { _repository = repository; }
public HomeController(ICompanyRepository companyRepository) { _companyRepository = companyRepository; }
public ValuesController(IBankierService bankierService, IRecommendationRepository recommendationRepository, ICompanyRepository companyRepository) { this._bankierService = bankierService; this._recommendationRepository = recommendationRepository; this._companyRepository = companyRepository; }
public ContactController(ICompanyRepository _contactRepository, IFeedbackRepository _feedbackRepository) { this.companyRepository = _contactRepository; this.feedbackRepository = _feedbackRepository; }
public CompaniesController(ICompanyRepository companyRepository) { _companyRepository = companyRepository ?? throw new ArgumentNullException(nameof(companyRepository)); }
public CompanyController(ICompanyRepository genericRepository, DatabaseContext context) : base(genericRepository, context) { _genericRepository = genericRepository; _context = context; _entity = _context.Set <CompanyEntity>(); }
public SliceAssetService(ISliceAssetRepository sliceRepository, IStakeHolderRepository shRepository, ITypeAssetRepo typeRepository, ICompanyRepository cpRepository) { _sliceRepository = sliceRepository; _shRepository = shRepository; _typeRepository = typeRepository; _cpRepository = cpRepository; }
public CompaniesController(IMapper mapper, ICompanyRepository repository, IUnitOfWork unitOfWork) { this.mapper = mapper; this.repository = repository; this.unitOfWork = unitOfWork; }
public StoreController(IStoreRepository sr, ICompanyRepository cr) { storeRepository = sr; companyRepository = cr; }
public CompanyController(ICompanyRepository repo) { _repo = repo; }
public CompaniesController(ICompanyRepository companyRepository) { this.companyRepository = companyRepository; }
public ContactController(IContactRepository contactRepository, ICompanyRepository companyRepository) { _contactRepository = contactRepository; _companyRepository = companyRepository; }
public MyController() { companyRepository = new CompanyRepository(); personRepository = new PersonRepository(); }
public EmployeesController(ICompanyRepository compRepo, IEmployeeRepository empRepo, IBonusRepository bonRepo) { _compRepo = compRepo; _empRepo = empRepo; _bonRepo = bonRepo; }
public MyController(ICompanyRepository CompanyRepository, IPersonRepository PersonRepository) { companyRepository = CompanyRepository; personRepository = PersonRepository; }
public HomeController(ICompanyRepository companies) { _companies = companies; }
public EmployeesController(ICompanyRepository companyRepository, IMapper mapper) { _companyRepository = companyRepository ?? throw new ArgumentNullException(nameof(companyRepository)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
/// <summary> /// 构造函数 /// </summary> /// <param name="repository"></param> /// <param name="mapper"></param> public CompanyService(ICompanyRepository repository, IMapper mapper) : base(repository, mapper) { this._repository = repository; this._mapper = mapper; }
public ProductService(IProductRepository productRepository, ICompanyRepository companyRepository) { this.productRepository = productRepository; this.companyRepository = companyRepository; }
public AdminRuleRepository(IUnitOfWork unitOfWork, LogHandler.Logger logger, ICompanyRepository companyRepository) : base(unitOfWork, logger) { _logger = logger; _uow = unitOfWork; _companyRepository = companyRepository; }