public void TestInitialize() { _context = new DbTestContext(Settings.Default.MainConnectionString); _fixture = new Fixture(); _states = new StateRepository(new SqlProcedureExecutor(Settings.Default.MainConnectionString)); }
public StateListPageViewModel(IStateRepository stateRepository, INavigationService navService, IEventAggregator eventAggregator) { _stateRepository = stateRepository; _navService = navService; _eventAggregator = eventAggregator; NavCommand = new DelegateCommand<State>(OnNavCommand); StateDetailNavCommand = new DelegateCommand(() => _navService.Navigate("StateDetail", 0)); }
public ApplicantAdditionalAddressesController(IApplicantRepository applicantRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IApplicantAdditionalAddressRepository applicantadditionaladdressRepository) { this.applicantRepository = applicantRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.applicantadditionaladdressRepository = applicantadditionaladdressRepository; }
public OrderOperations() { _orderRepository = OrderRepositoryFactory.CreateOrderRepository(); _productsRepository = ProductsRepositoryFactory.CreateProductsRepository(); _statesRepository = StatesRepositoryFactory.CreateStatesRepository(); _response = new Response(); }
public VendorAddressController(IVendorRepository vendorRepository, IVendorAddressCategoryRepository vendoraddresscategoryRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IVendorAddressRepository vendoraddressRepository) { this.vendorRepository = vendorRepository; this.vendoraddresscategoryRepository = vendoraddresscategoryRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.vendoraddressRepository = vendoraddressRepository; }
public void TestInitialize() { _context = new DbTestContext(Settings.Default.MainConnectionString); var executor = new SqlProcedureExecutor(Settings.Default.MainConnectionString); _settings = new StateSettingsRepository(executor); _states = new StateRepository(executor); }
public OrganizationAddressController(IOrganizationRepository organizationRepository, IOrganizationAddressCategoryRepository organizationaddresscategoryRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IOrganizationAddressRepository organizationaddressRepository) { this.organizationRepository = organizationRepository; this.organizationaddresscategoryRepository = organizationaddresscategoryRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.organizationaddressRepository = organizationaddressRepository; }
public VendorSupplierDiversityCertificateInfoController(IVendorRepository vendorRepository, IVendorSupplierDiversityCertificationCategoryRepository vendorsupplierdiversitycertificationcategoryRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IVendorSupplierDiversityCertificateInfoRepository vendorsupplierdiversitycertificateinfoRepository) { this.vendorRepository = vendorRepository; this.vendorsupplierdiversitycertificationcategoryRepository = vendorsupplierdiversitycertificationcategoryRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.vendorsupplierdiversitycertificateinfoRepository = vendorsupplierdiversitycertificateinfoRepository; }
public ApplicantPreferredWorkLocationsController(IApplicantRepository applicantRepository, ICountryRepository countryRepository, IStateRepository stateRepository, ICityRepository cityRepository, IApplicantPreferredWorkLocationRepository applicantpreferredworklocationRepository) { this.applicantRepository = applicantRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.cityRepository = cityRepository; this.applicantpreferredworklocationRepository = applicantpreferredworklocationRepository; }
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 ApplicantPassportInfoesController(IApplicantRepository applicantRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IUserRepository userRepository, IApplicantPassportInfoRepository applicantpassportinfoRepository) { this.applicantRepository = applicantRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.userRepository = userRepository; this.applicantpassportinfoRepository = applicantpassportinfoRepository; }
public StateController( IStateRepository states, ITemplateRepository templates, IIdentityService identity) { _states = states; _templates = templates; _identity = identity; }
public StateSettingsController( IIdentityService identity, IStateSettingsRepository settings, IStateRepository states) { _identity = identity; _settings = settings; _states = states; }
public ApplicantDriverLicensesController(IApplicantRepository applicantRepository, IDriverLicenseRepository driverlicenseRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IUserRepository userRepository, IApplicantDriverLicenseRepository applicantdriverlicenseRepository) { this.applicantRepository = applicantRepository; this.driverlicenseRepository = driverlicenseRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.userRepository = userRepository; this.applicantdriverlicenseRepository = applicantdriverlicenseRepository; }
public BSEWalletManager(IZipCodeRepository zipCodeRepository, IStateRepository stateRepository, ICardRepository cardRepository, ICustomerRepository customerRepository, ITransactionRepository transactionRepository, ILoginRepository login) { _ZipCodeRepository = zipCodeRepository; _StateRepository = stateRepository; _CardRepository = cardRepository; _CustomerRepository = customerRepository; _TransactionRepository = transactionRepository; _Login = login; }
public StateController(IStateRepository repository, string catalog, LoginView view) { this._LoginId = view.LoginId.ToLong(); this._UserId = view.UserId.ToInt(); this._OfficeId = view.OfficeId.ToInt(); this._Catalog = catalog; this.StateRepository = repository; }
public ApplicantExperiencesController(IApplicantRepository applicantRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IEmploymentLeaveReasonCategoryRepository employmentleavereasoncategoryRepository, IUserRepository userRepository, IApplicantExperienceRepository applicantexperienceRepository) { this.applicantRepository = applicantRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.employmentleavereasoncategoryRepository = employmentleavereasoncategoryRepository; this.userRepository = userRepository; this.applicantexperienceRepository = applicantexperienceRepository; }
public ApplicantVisaInfoesController(IApplicantRepository applicantRepository, IVisaRepository visaRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IVisaStatusRepository visastatusRepository, IApplicantVisaInfoRepository applicantvisainfoRepository) { this.applicantRepository = applicantRepository; this.visaRepository = visaRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.visastatusRepository = visastatusRepository; this.applicantvisainfoRepository = applicantvisainfoRepository; }
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 MembershipService(ICustomerRepository customerRepository, IEncryptor encryptor, IMembershipValidator membershipValidator, IStateRepository stateRepository, IUnitOfWork uow, IUserLoginRepository userLoginRepository) { _customerRepository = customerRepository; _encryptor = encryptor; _membershipValidator = membershipValidator; _stateRepository = stateRepository; _uow = uow; _userLoginRepository = userLoginRepository; }
public ApplicantEduCertLicensesController(IApplicantRepository applicantRepository, ISkillsExpEduCategoryRepository skillsexpeducategoryRepository, ISkillsExpEduRepository skillsexpeduRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IUserRepository userRepository, IApplicantEduCertLicenseRepository applicanteducertlicenseRepository) { this.applicantRepository = applicantRepository; this.skillsexpeducategoryRepository = skillsexpeducategoryRepository; this.skillsexpeduRepository = skillsexpeduRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.userRepository = userRepository; this.applicanteducertlicenseRepository = applicanteducertlicenseRepository; }
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; }
public AwbPresenter( IAwbRepository awbs, IAwbFileRepository files, IBrokerRepository brokers, IStateRepository states) { _awbs = awbs; _files = files; _brokers = brokers; _states = states; }
public void SetUp() { _repo = StatesRepositoryFactory.CreateStatesRepository(); _states = new [] { "OH,Ohio,6.25", "PA,Pennsylvania,6.75", "MI,Michigan,5.75", "IN,Indiana,6.00" }; }
public ApplicantController(IContactProfessionTypeRepository contactprofessiontypeRepository, IExperienceLevelCategoryRepository experiencelevelcategoryRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IApplicantAvailabilityStatusCategoryRepository applicantavailabilitystatuscategoryRepository, IApplicantSourceCategoryRepository applicantsourcecategoryRepository, IUserRepository userRepository, IApplicantRepository applicantRepository) { this.contactprofessiontypeRepository = contactprofessiontypeRepository; this.experiencelevelcategoryRepository = experiencelevelcategoryRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.applicantavailabilitystatuscategoryRepository = applicantavailabilitystatuscategoryRepository; this.applicantsourcecategoryRepository = applicantsourcecategoryRepository; this.userRepository = userRepository; this.applicantRepository = applicantRepository; }
public VendorsController(IIndustryRepository industryRepository, ICompanyOwnerRepository companyownerRepository, IVendorLegalCompanyStructureCategoryRepository vendorlegalcompanystructurecategoryRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IVendorStatusCategoryRepository vendorstatuscategoryRepository, IUserRepository userRepository, IVendorRepository vendorRepository) { this.industryRepository = industryRepository; this.companyownerRepository = companyownerRepository; this.vendorlegalcompanystructurecategoryRepository = vendorlegalcompanystructurecategoryRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.vendorstatuscategoryRepository = vendorstatuscategoryRepository; this.userRepository = userRepository; this.vendorRepository = vendorRepository; }
public void Test20DBreeze() { DBreezeEngine engine = new DBreezeEngine(DbreezeTestLocation); using (DBreeze.Transactions.Transaction t = engine.GetTransaction()) { t.RemoveAllKeys(DbreezeTestDb, true); t.Commit(); } ISource <byte[], byte[]> stateDB = new NoDeleteSource <byte[], byte[]>(new DBreezeByteStore(engine, DbreezeTestDb)); StateRepositoryRoot repository = new StateRepositoryRoot(stateDB); byte[] root = repository.Root; uint160 cowAddress = new uint160(cow); uint160 horseAddress = new uint160(horse); IStateRepository track2 = repository.StartTracking(); //repository track2.SetStorageValue(cowAddress, cowKey1, cowVal1); track2.SetStorageValue(horseAddress, horseKey1, horseVal1); track2.Commit(); repository.Commit(); byte[] root2 = repository.Root; track2 = repository.StartTracking(); //repository track2.SetStorageValue(cowAddress, cowKey2, cowVal0); track2.SetStorageValue(horseAddress, horseKey2, horseVal0); track2.Commit(); repository.Commit(); byte[] root3 = repository.Root; IStateRepository snapshot = new StateRepositoryRoot(stateDB, root); Assert.Null(snapshot.GetStorageValue(cowAddress, cowKey1)); Assert.Null(snapshot.GetStorageValue(cowAddress, cowKey2)); Assert.Null(snapshot.GetStorageValue(horseAddress, horseKey1)); Assert.Null(snapshot.GetStorageValue(horseAddress, horseKey2)); snapshot = new StateRepositoryRoot(stateDB, root2); Assert.Equal(cowVal1, snapshot.GetStorageValue(cowAddress, cowKey1)); Assert.Null(snapshot.GetStorageValue(cowAddress, cowKey2)); Assert.Equal(horseVal1, snapshot.GetStorageValue(horseAddress, horseKey1)); Assert.Null(snapshot.GetStorageValue(horseAddress, horseKey2)); snapshot = new StateRepositoryRoot(stateDB, root3); Assert.Equal(cowVal1, snapshot.GetStorageValue(cowAddress, cowKey1)); Assert.Equal(cowVal0, snapshot.GetStorageValue(cowAddress, cowKey2)); Assert.Equal(horseVal1, snapshot.GetStorageValue(horseAddress, horseKey1)); Assert.Equal(horseVal0, snapshot.GetStorageValue(horseAddress, horseKey2)); }
public CorporateUploadHelper(IMediaRepository mediaRepository, IStateRepository stateRepository, ICountryRepository countryRepository, IEventPackageRepository eventPackageRepository, IEventSchedulingSlotService slotService, IEventService eventService, ICsvReader csvReader, IAppointmentRepository appointmentRepository) { _mediaRepository = mediaRepository; _stateRepository = stateRepository; _countryRepository = countryRepository; _eventPackageRepository = eventPackageRepository; _slotService = slotService; _eventService = eventService; _csvReader = csvReader; _appointmentRepository = appointmentRepository; }
static void Main(string[] args) { customerFileName = getFilePath() + "Data\\CustomerInvoicingData.csv"; purchaseFileName = getFilePath() + "Data\\SmallGroup-SalesData.csv"; stateRepository = new StateRepository(StateRepository.GetStates()); purchaseRepository = new PurchaseRepository(PurchaseRepository.GetPurchases(purchaseFileName, stateRepository), purchaseFileName); customerRepository = new CustomerRepository(CustomerRepository.GetCustomers(customerFileName, purchaseRepository, stateRepository), customerFileName); customerContext = new CustomerContext(customerRepository, purchaseRepository); displayMenu(); }
public SaveVenueCommandHandler(IMasterVenueLayoutRepository masterVenueLayoutRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IEventGalleryImageRepository eventGalleryImageRepository, IZipcodeRepository zipcodeRepository, ICityRepository cityRepository, IVenueRepository venueRepository, IMediator mediator) : base(mediator) { _countryRepository = countryRepository; _stateRepository = stateRepository; _cityRepository = cityRepository; _venueRepository = venueRepository; _zipcodeRepository = zipcodeRepository; _masterVenueLayoutRepository = masterVenueLayoutRepository; }
public void Repository_CommitPushesToUnderlyingSource() { ISource <byte[], byte[]> stateDB = new NoDeleteSource <byte[], byte[]>(new MemoryDictionarySource()); StateRepositoryRoot repository = new StateRepositoryRoot(stateDB); IStateRepository txTrack = repository.StartTracking(); txTrack.CreateAccount(testAddress); txTrack.SetStorageValue(testAddress, dog, cat); Assert.Null(repository.GetStorageValue(testAddress, dog)); txTrack.Commit(); Assert.Equal(cat, repository.GetStorageValue(testAddress, dog)); }
public SecurityServiceTest() { AutoMapper.Mapper.Reset(); AutoMapperConfig.Configure(); _unitOfWork = new UnitOfWorkTest(); _queueListRepository = new QueueListRepositoryTest(); _gatePassRepository = new GatePassRepositoryTest(); _stateRepository = new StateRepositoryTest(); _stateRecordRepository = new StateRecordRepositoryTest(); _rfidCardRepository = new RFIDCardRepositoryTest(); _securityServices = new SecurityServices(_unitOfWork, _queueListRepository, _gatePassRepository, _stateRecordRepository, _rfidCardRepository, _stateRepository); }
public VendorContactController(IVendorRepository vendorRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IContactProfessionTypeRepository contactprofessiontypeRepository, IEthnicBackgroundRepository ethnicbackgroundRepository, IGenderRepository genderRepository, IVeteranCategoryRepository veterancategoryRepository, IUserRepository userRepository, IVendorContactRepository vendorcontactRepository) { this.vendorRepository = vendorRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.contactprofessiontypeRepository = contactprofessiontypeRepository; this.ethnicbackgroundRepository = ethnicbackgroundRepository; this.genderRepository = genderRepository; this.veterancategoryRepository = veterancategoryRepository; this.userRepository = userRepository; this.vendorcontactRepository = vendorcontactRepository; }
public GoogleAPIUtilityQueryHandler( ICityRepository cityRepository, IStateRepository stateRepository, ICountryRepository countryRepository, IVenueRepository venueRepository ) { _cityRepository = cityRepository; _venueRepository = venueRepository; _stateRepository = stateRepository; _countryRepository = countryRepository; }
public AddressController(IAddressRepository addressRepository, ICountryRepository countryRepository, IStateRepository stateRepository, ICityRepository cityRepository) { _addressRepository = addressRepository; _countryRepository = countryRepository; _stateRepository = stateRepository; _cityRepository = cityRepository; var country = DependencyResolver.Current.GetService <CountryController>(); ViewBag.CountryId = country.ReturnAll(); }
public StateDetailPageViewModel(IStateRepository stateRepository, INavigationService navService, IEventAggregator eventAggregator) { _stateRepository = stateRepository; _navService = navService; _eventAggregator = eventAggregator; GoBackCommand = new DelegateCommand( () => _navService.GoBack(), () => _navService.CanGoBack()); NewStateCommand = new DelegateCommand(OnNewState, CanNewState); UpdateStateCommand = new DelegateCommand(OnUpdateState, CanUpdateState); DeleteStateCommand = new DelegateCommand(OnDeleteState, CanDeleteState); TextBoxLostFocusAction = OnTextBoxLostFocusAction; }
public TransactionCondenser(uint160 contractAddress, ILoggerFactory loggerFactory, IReadOnlyList <TransferInfo> transfers, IStateRepository stateRepository, Network network, IContractTransactionContext transactionContext) { this.contractAddress = contractAddress; this.logger = loggerFactory.CreateLogger(this.GetType().Name); this.network = network; this.transactionContext = transactionContext; this.stateRepository = stateRepository; this.transfers = transfers; this.nVouts = new Dictionary <uint160, uint>(); this.txBalances = new Dictionary <uint160, ulong>(); this.unspents = new List <ContractUnspentOutput>(); }
public SecurityServices(IUnitOfWork unitOfWork, IQueueListRepository queueListRepository, IGatePassRepository gatePassRepository, IStateRecordRepository stateRecordRepository, IRFIDCardRepository rfidCardRepository, IStateRepository stateRepository) { _unitOfWork = unitOfWork; _queueListRepository = queueListRepository; _gatePassRepository = gatePassRepository; _stateRecordRepository = stateRecordRepository; _rfidCardRepository = rfidCardRepository; _stateRepository = stateRepository; }
public StateDetailPageViewModel(IStateRepository stateRepository, INavigationService navService, IEventAggregator eventAggregator) { _stateRepository = stateRepository; _navService = navService; _eventAggregator = eventAggregator; GoBackCommand = new DelegateCommand( () => _navService.GoBack(), () => _navService.CanGoBack()); NewStateCommand = new DelegateCommand(OnNewState, CanNewState); UpdateStateCommand = new DelegateCommand(OnUpdateState, CanUpdateState); DeleteStateCommand = new DelegateCommand(OnDeleteState, CanDeleteState); TextBoxLostFocusAction = OnTextBoxLostFocusAction; }
public FeelCustomDefaultContentQueryHandler(IEventSiteIdMappingRepository eventSiteIdMappingRepository, ICountryRepository countryRepository, IStateRepository stateRepository, ICityRepository cityRepository, IEventRepository eventRepository, IEventDetailRepository eventDetailRepository, IVenueRepository venueRepository, IEventSiteContentMappingRepository eventSiteContentMappingRepository, IEventBannerMappingRepository eventBannerMappingRepository) { _eventSiteIdMappingRepository = eventSiteIdMappingRepository; _countryRepository = countryRepository; _stateRepository = stateRepository; _cityRepository = cityRepository; _eventRepository = eventRepository; _eventDetailRepository = eventDetailRepository; _venueRepository = venueRepository; _eventSiteContentMappingRepository = eventSiteContentMappingRepository; _eventBannerMappingRepository = eventBannerMappingRepository; }
public TeacherController(ITeacherRepository teacherRepository, ICountryRepository countryRepository, UserManager <IdentityUser> userManager, IPasswordGenerator passwordGenerator, IProcessFileUpload processFileUpload, IStateRepository stateRepository, IHostingEnvironment hostingEnvironment, IEntityRepository <Department> entityRepository) { this.hostingEnvironment = hostingEnvironment; this.processFileUpload = processFileUpload; this.passwordGenerator = passwordGenerator; this.countryRepository = countryRepository; this.userManager = userManager; this.stateRepository = stateRepository; this.entityRepository = entityRepository; _teacherRepository = teacherRepository; }
public GetAllLocationCommandHandler( ICitySightSeeingLocationRepository citySightSeeingLocationRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IVenueRepository venueRepository, ISettings settings, ICityRepository cityRepository, ICitySightSeeingEventDetailMappingRepository citySightSeeingEventDetailMappingRepository, ILogger logger, IMediator mediator) : base(mediator) { _logger = logger; _citySightSeeingLocationRepository = citySightSeeingLocationRepository; _countryRepository = countryRepository; _stateRepository = stateRepository; _venueRepository = venueRepository; _settings = settings; _cityRepository = cityRepository; _citySightSeeingEventDetailMappingRepository = citySightSeeingEventDetailMappingRepository; }
public AppLoaderService(IStateRepository stateRepository, IMemberJoinTypeRepository memberJoinTypeRepository, IMemberLeaveTypeRepository memberLeaveTypeRepository, IMemberRelationTypeRepository memberRelationTypeRepository, ISSClassTeacherTypeRepository ssClassTeacherTypeRepository, ICommitteeRoleRepository committeeRoleRepository, IGraceGlobalCacheService graceGlobalCacheService) { _stateRepository = stateRepository; _memberJoinTypeRepository = memberJoinTypeRepository; _memberLeaveTypeRepository = memberLeaveTypeRepository; _memberRelationTypeRepository = memberRelationTypeRepository; _ssClassTeacherTypeRepository = ssClassTeacherTypeRepository; _committeeRoleRepository = committeeRoleRepository; _graceGlobalCacheService = graceGlobalCacheService; }
private static void GetByNotEqualOperator(IStateRepository stateRepository) { var nameState = "Texas"; var country = "US"; Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); List <State> states = stateRepository.GetStateByNotName(country, nameState); stopwatch.Stop(); Console.WriteLine($"Time Get All Data: {stopwatch.ElapsedMilliseconds} ms - Total Elements: {states.Count}"); ListStates(states); }
public ApplicationPresenter( IApplicationRepository applications, IIdentityService identity, IStateFilter stateFilter, ITransitRepository transits, IStateRepository states) { _applications = applications; _identity = identity; _stateFilter = stateFilter; _transits = transits; _states = states; }
public RequisitionsController(IUserRepository userRepository, IRequisitionJDLibraryCategoryRepository requisitionjdlibrarycategoryRepository, IEmploymentTypeRepository employmenttypeRepository, IExperienceLevelCategoryRepository experiencelevelcategoryRepository, ICurrencyRepository currencyRepository, ISalaryRateTypeRepository salaryratetypeRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IRequisitionStatusCategoryRepository requisitionstatuscategoryRepository, IRequisitionRepository requisitionRepository) { this.userRepository = userRepository; this.requisitionjdlibrarycategoryRepository = requisitionjdlibrarycategoryRepository; this.employmenttypeRepository = employmenttypeRepository; this.experiencelevelcategoryRepository = experiencelevelcategoryRepository; this.currencyRepository = currencyRepository; this.salaryratetypeRepository = salaryratetypeRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.requisitionstatuscategoryRepository = requisitionstatuscategoryRepository; this.requisitionRepository = requisitionRepository; }
private static void UpdateRecord(IStateRepository stateRepository) { State state = new State { Country = "CO", Code = "01", Name = "Amazonas", NumberCitizens = 70 }; Console.WriteLine($"Modify a only element: {stateRepository.Update(state)}"); ListStates(stateRepository.GetAll()); }
public CustomerRegistrationService(IMassRegistrationEditModelFactory massRegistrationEditModelFactory, ISessionContext sessionContext, ICustomerService customerService, IOrganizationRoleUserRepository orgRoleUserRepository, IEventPackageRepository eventPackageRepository, IEventCustomerRepository eventCustomerRepository, IOrderController orderController, IAddressService addressService, IShippingOptionRepository shippingOptionRepository, IShippingController shippingController, INotifier notifier, IEmailNotificationModelsFactory emailNotificationModelsFactory, IEventTestRepository eventTestRepository, ISettings settings, IStateRepository stateRepository, IEventAppointmentService eventAppointmentService, IEventPackageSelectorService eventPackageSelectorService, IEventSchedulingSlotService eventSchedulingSlotService, IEventRepository eventRepository, IPhoneNotificationModelsFactory smsNotificationModelsFactory, ICorporateAccountRepository corporateAccountRepository, IEmailTemplateRepository emailTemplateRepository, ICustomerRepository customerRepository, ICustomerNotesService customerNotesService, ILanguageRepository languageRepository, ILabRepository labRepository, IUserLoginRepository userLoginRepository, ILogManager logManager, IEventCustomerNotificationRepository eventCustomerNotificationRepository, ICorporateCustomerUploadService corporateCustomerUploadService, ICurrentMedicationRepository currentMedicationRepository, ICustomerIcdCodesRepository customerIcdCodesRepository, IEventCustomerCurrentMedicationRepository eventCustomerCurrentMedicationRepository, IEventCustomerIcdCodesRepository eventCustomerIcdCodesRepository) { _massRegistrationEditModelFactory = massRegistrationEditModelFactory; _sessionContext = sessionContext; _customerService = customerService; _orgRoleUserRepository = orgRoleUserRepository; _eventPackageRepository = eventPackageRepository; _eventCustomerRepository = eventCustomerRepository; _orderController = orderController; _addressService = addressService; _shippingOptionRepository = shippingOptionRepository; _shippingController = shippingController; _notifier = notifier; _emailNotificationModelsFactory = emailNotificationModelsFactory; _eventTestRepository = eventTestRepository; _settings = settings; _stateRepository = stateRepository; _eventAppointmentService = eventAppointmentService; _eventPackageSelectorService = eventPackageSelectorService; _eventSchedulingSlotService = eventSchedulingSlotService; _eventRepository = eventRepository; _smsNotificationModelsFactory = smsNotificationModelsFactory; _corporateAccountRepository = corporateAccountRepository; _emailTemplateRepository = emailTemplateRepository; _customerRepository = customerRepository; _customerNotesService = customerNotesService; _languageRepository = languageRepository; _labRepository = labRepository; _userLoginRepository = userLoginRepository; _eventCustomerNotificationRepository = eventCustomerNotificationRepository; _corporateCustomerUploadService = corporateCustomerUploadService; _currentMedicationRepository = currentMedicationRepository; _customerIcdCodesRepository = customerIcdCodesRepository; _eventCustomerCurrentMedicationRepository = eventCustomerCurrentMedicationRepository; _eventCustomerIcdCodesRepository = eventCustomerIcdCodesRepository; _logger = logManager.GetLogger("Customer Registration Service"); }
private static void GetStatesByCountryPaginated(IStateRepository stateRepository) { string paginationToken = "{}"; int total = 0; Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); int? limit = 10; List <State> states = stateRepository.GetStateByCountry("CO", limit, ref paginationToken, ref total); stopwatch.Stop(); ListStates(states); Console.WriteLine($"Time Get Data by Query: {stopwatch.ElapsedMilliseconds} ms - Total Elements: {states.Count}"); }
public LocalExecutor(ILoggerFactory loggerFactory, ICallDataSerializer serializer, IStateRepositoryRoot stateRoot, IStateFactory stateFactory, IStateProcessor stateProcessor, IContractPrimitiveSerializer contractPrimitiveSerializer) { this.logger = loggerFactory.CreateLogger(this.GetType()); this.stateRoot = stateRoot; this.serializer = serializer; this.stateFactory = stateFactory; this.stateProcessor = stateProcessor; this.contractPrimitiveSerializer = contractPrimitiveSerializer; }
private static void displayPurchaseSummaryByState(IStateRepository statesRepository, ICustomerContext customerContext) { Console.Clear(); Console.WriteLine("\n.................... PURCHASE TOTAL SUMMARY (By State) ....................\n"); foreach (var state in statesRepository.States) { var sumForState = customerContext.SumTotalPurchaseByState(state.StateCode); Console.WriteLine($"Total {state.StateName} Purchases: {sumForState.ToString("C")}"); } returnToMainMenu(); return; }
public StateController() { this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong(); this._UserId = AppUsers.GetCurrent().View.UserId.ToInt(); this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt(); this._Catalog = AppUsers.GetCurrentUserDB(); this.StateRepository = new MixERP.Net.Schemas.Core.Data.State { _Catalog = this._Catalog, _LoginId = this._LoginId, _UserId = this._UserId }; }
public FinanceDetailsQueryHandler(IFinanceDetailRepository financeDetailRepository, IEventDetailRepository eventDetailRepository, IVenueRepository venueRepository, ICityRepository cityRepository, IStateRepository stateRepository, ICountryRepository countryRepository, IEventRepository eventRepository, FIL.Logging.ILogger logger) { _financeDetailRepository = financeDetailRepository; _eventDetailRepository = eventDetailRepository; _venueRepository = venueRepository; _cityRepository = cityRepository; _stateRepository = stateRepository; _countryRepository = countryRepository; _logger = logger; _eventRepository = eventRepository; }
private static void displayTaxSummary(IStateRepository statesRepository, ICustomerContext customerContext) { Console.Clear(); Console.WriteLine("\n................. TAX SUMMARY REPORT BY STATE ..................\n"); foreach (var state in statesRepository.States) { var sumForState = customerContext.SumTotalTaxByState(state.StateCode); Console.WriteLine($"Total {state.StateName} State Tax Owed: {sumForState.ToString("C")}"); } returnToMainMenu(); return; }
public LostItemController(IStateRepository stateRepository, ILocalGovernmentRepository lgaRepository, IEmailNotifier emailNotifier, IUtility utility, ILostItemRepository repository, ILostItemClaimRepository claimRepository, UserManager <ApplicationUser> userManager) { this.stateRepository = stateRepository; this.lgaRepository = lgaRepository; this.emailNotifier = emailNotifier; this.utility = utility; this.repository = repository; this.claimRepository = claimRepository; // this.context = context; this.userManager = userManager; }
public AccountController(IWorkerRepository workerRepository, IGenderRepository genderRepository, ICountryRepository countryRepository, IStateRepository stateRepository, WorkerAuthenticationManager workerAuthenticationManager, IWorkerRoleActionPermissionRepository workerroleactionpermissionRepository) : base(workerroleactionpermissionRepository) { this.workerRepository = workerRepository; this.countryRepository = countryRepository; this.stateRepository = stateRepository; this.genderRepository = genderRepository; this.workerAuthenticationManager = workerAuthenticationManager; }
public void Test4() { MemoryDictionarySource source = new MemoryDictionarySource(); StateRepositoryRoot root = new StateRepositoryRoot(source); IStateRepository repository = root.StartTracking(); repository.SetStorageValue(new uint160(cow), cowKey, cowValue); repository.SetStorageValue(new uint160(horse), horseKey, horseValue); repository.Commit(); Assert.Equal(cowValue, root.GetStorageValue(new uint160(cow), cowKey)); Assert.Equal(horseValue, root.GetStorageValue(new uint160(horse), horseKey)); }
private static void GetByInOperator(IStateRepository stateRepository) { List <string> names = new List <string> { "Caqueta", "Antioquia", "Bogota" }; Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); List <State> states = stateRepository.GetByInOperator(names); stopwatch.Stop(); Console.WriteLine($"Time Get All Data: {stopwatch.ElapsedMilliseconds} ms - Total Elements: {states.Count}"); ListStates(states); }
private static void FillTables(IStateRepository stateRepository, ICountryRepository countryRepository) { string json = File.ReadAllText(@"Resources\inputStates.txt"); List <State> states = JsonConvert.DeserializeObject <List <State> >(json); states = states.FindAll(s => !string.IsNullOrEmpty(s.Code) && !string.IsNullOrEmpty(s.Country)); states = states.FindAll(s => s.Country == "CO"); Console.WriteLine($"Full Table: {stateRepository.Add(states)}"); json = File.ReadAllText(@"Resources\inputCountries.txt"); List <Country> countries = JsonConvert.DeserializeObject <List <Country> >(json); countries = countries.FindAll(c => !string.IsNullOrEmpty(c.Code) && (c.Code == "CO" || c.Code == "US")); Console.WriteLine($"Full Table: {countryRepository.Add(countries)}"); }
public CustomerController() { _customerDynamicsRepository = new CustomerDynamicsRepository(); _customerAddressDynamicsRepository = new CustomerAddressDynamicsRepository(); _paymentTermRepository = new PaymentTermRepository(); _shipmentTermRepository = new ShipmentTermRepository(); _countryRepository = new CountryRepository(); _stateRepository = new StateRepository(); _orderTermRepository = new OrderTermRepository(); _salespersonDynamicsRepository = new SalespersonDynamicsRepository(); _siteDynamicsRepository = new SiteDynamicsRepository(); _accountCodeRepository = new AccountCodeRepository(); _projectRepository = new ProjectRepository(); _partRepository = new PartRepository(); }