public StatusServiceTests() { this.statusRepository = Substitute.For <IStatusRepository>(); this.statusStoreRepository = Substitute.For <IStatusStoreRepository>(); this.statusService = new StatusService(this.statusRepository, this.statusStoreRepository); }
public HomeController(IHomePageRepository homePageRepo, IProductRepository productRepo, IStatusRepository statusRepo, ICategoryRepository categoryRepo) { _homePageRepo = homePageRepo; _productRepo = productRepo; _statusRepo = statusRepo; _categoryRepo = categoryRepo; }
public StatusBusiness(DbConnection db) { if (db == null) throw new InvalidDatabaseInstanceException(); this.statusRepository = new StatusRepository(db); }
public TransactionTypeService(ITransactionTypeRepository transactionTypeRepository, ICustomerService customerService, IStatusRepository statusRepository) { _statusRepository = statusRepository; _transactionTypeRepository = transactionTypeRepository; _customerService = customerService; }
public GooglePlacesController(IPlacesClient placesService, IRestaurantRepository restaurantRepository, ILocationRepository locationRepository, IStatusRepository statusRepository) { _placesService = placesService; _restaurantRepository = restaurantRepository; _locationRepository = locationRepository; _statusRepository = statusRepository; }
public StatusesController(IStatusRepository context, IMapper mapper, ILogsService log, IHttpContextAccessor httpContextAccessor) { _context = context; _mapper = mapper; _log = log; _httpContextAccessor = httpContextAccessor; }
public AssetService(IAssetRepository _repository, IAssetDetailRepository _repositoryAssetDetail, IAssetHistoryRepository _repositoryAssetHistory, IAssetLicenseRepository _repositoryAssetLicense, IAssetOwnerRepository _repositoryAssetOwner, IStatusRepository _repositoryStatus, IBackupRepository _repositoryBackup, ILicenseRepository _repositoryLicense, IOperationalSiteRepository _repositoryOperationalSite, IOperationalSiteLocationRepository _repositoryOperationalSiteLocation, IPurchaseItemRepository _repositoryPurchaseItem, IRackRepository _repositoryRack, IRackLocationRepository _repositoryRackLocation, IURackRepository _repositoryURack, IWarningPeriodRepository _repositoryWarningPeriod, IPurchaseTypeRepository _repositoryPurchaseType, IWarehouseRepository _repositoryWarehouse, UserManager <ApplicationUser> userManager) { repository = _repository; repositoryAssetDetail = _repositoryAssetDetail; repositoryAssetHistory = _repositoryAssetHistory; repositoryAssetLicense = _repositoryAssetLicense; repositoryAssetOwner = _repositoryAssetOwner; repositoryStatus = _repositoryStatus; repositoryBackup = _repositoryBackup; repositoryLicense = _repositoryLicense; repositoryOperationalSite = _repositoryOperationalSite; repositoryOperationalSiteLocation = _repositoryOperationalSiteLocation; repositoryPurchaseItem = _repositoryPurchaseItem; repositoryRack = _repositoryRack; repositoryRackLocation = _repositoryRackLocation; repositoryURack = _repositoryURack; repositoryWarningPeriod = _repositoryWarningPeriod; repositoryPurchaseType = _repositoryPurchaseType; repositoryWarehouse = _repositoryWarehouse; this.userManager = userManager; }
public WishlistController(IWislistRepository wishlistRepo, IProductRepository productRepo, ICategoryRepository categoryRepo, IStatusRepository statusRepo) { _wishlistRepo = wishlistRepo; _productRepo = productRepo; _categoryRepo = categoryRepo; _statusRepo = statusRepo; }
public SocialController() { userRepository = new UserRepository(); socialRepository = new SocialRepository(); statusRepository = new StatusRepository(); friendRepository = new FriendRepository(); }
public Statuses(ILogger log, IStatusRepository statusRepo) { logger = log; statusRepository = statusRepo; logger.LogInformation("Statuses Business Logic - Constructor"); }
public ComplaintsRepository(ApplicationDbContext context, ICustomersRepository customersRepository, IServiceRateRepository serviceRateRepository, IStatusRepository statusRepository) { _context = context; _customersRepository = customersRepository; _serviceRateRepository = serviceRateRepository; _statusRepository = statusRepository; }
public StatusService(IMapper mapper, IStatusRepository statusRepository, IRequestIdentityProvider requestIdentityProvider, IUserRepository userRepository) { this.mapper = mapper; this.statusRepository = statusRepository; this.userRepository = userRepository; this.requestIdentityProvider = requestIdentityProvider; }
public SearchController(IRestaurantService restaurantService, IRestaurantRepository restaurantRepository, IStatusRepository statusRepository) { _restaurantRepository = restaurantRepository; _statusRepository = statusRepository; _restaurantService = restaurantService; }
public GetAllStatusQueryHandler(IStatusRepository statusRepository, IWorkerRepository workerRepository, IUserStore <User> userStore) { _statusRepository = statusRepository ?? throw new System.ArgumentNullException(nameof(statusRepository)); _workerRepository = workerRepository ?? throw new System.ArgumentNullException(nameof(workerRepository)); this.userStore = userStore; }
public LicenceStatusViewModelBuilder(ILicenceRepository licenceRepository, IStatusRepository statusRepository, IMapper mapper) { this.licenceRepository = licenceRepository; this.statusRepository = statusRepository; this.mapper = mapper; }
public StatusController(IStatusRepository statusRepository, IRegistroRepository registroRepository, IClienteRepository clienteRepository) { _statusRepository = statusRepository; _registroRepository = registroRepository; _clienteRepository = clienteRepository; }
// // GET: /Wall/ //[HttpGet] public ActionResult Index(string userId) { // get current user Session.Remove("preStatusId"); string curUserId; if (string.IsNullOrEmpty(userId)) { curUserId = User.Identity.GetUserId(); } else { curUserId = userId; } this._shareRepository = new ShareRepository(this._dbContext); var listStatusIdShared = this._shareRepository.GetStatusIdShared(curUserId); this._statusRepository = new StatusRepository(this._dbContext); var listStatusViewModel = this._statusRepository.GetListStatusByRangeStatusId(listStatusIdShared); this._userRepository = new UserRepository(_dbContext); var curUser = this._userRepository.GetUserById(curUserId); ViewBag.curUser = curUser; return(View(listStatusViewModel)); }
// // GET: /Wall/ //[HttpGet] public ActionResult Index(string userId) { // get current user Session.Remove("preStatusId"); string curUserId; if(string.IsNullOrEmpty(userId)) { curUserId = User.Identity.GetUserId(); } else { curUserId = userId; } this._shareRepository = new ShareRepository(this._dbContext); var listStatusIdShared = this._shareRepository.GetStatusIdShared(curUserId); this._statusRepository = new StatusRepository(this._dbContext); var listStatusViewModel = this._statusRepository.GetListStatusByRangeStatusId(listStatusIdShared); this._userRepository = new UserRepository(_dbContext); var curUser = this._userRepository.GetUserById(curUserId); ViewBag.curUser = curUser; return View(listStatusViewModel); }
private DBContext() { _accounts = new AccountRepository(); _accountTypes = new AccountTypeRepository(); _audits = new AuditRepository(); _categories = new CategoryRepository(); _containers = new ContainerRepository(); _dimensions = new DimensionRepository(); _facilities = new FacilityRepository(); _facilityTypes = new FacilityTypeRepository(); _priorities = new PriorityRepository(); _users = new UserRepository(); _packagingLevels = new PackagingLevelRepository(); _pictures = new PictureRepository(); _projects = new ProjectRepository(); _ratings = new RatingRepository(); _requests = new RequestRepository(); _requestItems = new RequestItemRepository(); _requestItemTypes = new RequestItemTypeRepository(); _roles = new RoleRepository(); _sources = new SourceRepository(); _status = new StatusRepository(); _status = new StatusRepository(); _tasks = new TaskRespository(); _dcIssueItems = new DCIssueItemRepository(); _dcIssues = new DCIssueRepository(); _dcIssuesFacilities = new DCIssueFacilityRepository(); _failedSamples = new FailedSampleRepository(); _requestCategories = new RequestCategoryRepository(); }
public StatusRepositoryTest() { QueryWithDefaultValues = BaseListQuery.DefaultValues("nb"); Mock = new Mock.Mock(); StatusRepository = new Repositories.StatusRepository(Mock.Database.Context); _status = Mock.MockStatus(); }
public LicenceApplicationViewModelBuilder(ILicenceRepository licenceRepository, IMapper mapper, IReferenceDataProvider rdp, IStatusRepository statusRepository, IConstantService constantService) { this.licenceRepository = licenceRepository; this.statusRepository = statusRepository; this.mapper = mapper; this.referenceDataProvider = rdp; this.constantService = constantService; }
public ProductController(ApplicationUserManager userManager, IProductRepository productRepo, ICategoryRepository categoryRepo, IStatusRepository statusRepo, IReviewRepository reviewRepo) { UserManager = userManager; _productRepo = productRepo; _categoryRepo = categoryRepo; _statusRepo = statusRepo; _reviewRepo = reviewRepo; }
public ORM(IFactory factory) { peopleRepository = factory.GetPeopleRepository(); carsRepository = factory.GetCarsRepository(); typesRepository = factory.GetTypesRepository(); statusRepository = factory.GetStatusRepository(); addressesRepository = factory.GetAddressesRepository(); }
public UsersController(IUserRepository userRepository, IPhoneRepository phoneRepository, IPlanRepository planRepository, IStatusRepository statusRepository, IMapper mapper) { this.userRepository = userRepository; this.phoneRepository = phoneRepository; this.planRepository = planRepository; this.statusRepository = statusRepository; this.mapper = mapper; }
public TaskController(ITaskRepository taskRepository, IStatusRepository statusRepository, ITaskCheckListRepository taskCheckListRepository) { _taskRepository = taskRepository; _sr = statusRepository; _taskCheckListRepository = taskCheckListRepository; }
public IStatusRepository GetStatusRepository() { if (statusRepository == null) { statusRepository = new StatusViewRepository(context); } return(statusRepository); }
//dependency injection of interfaces into the PaymentProcessor constructor public PaymentProcessor(ICheapPaymentGateway cheapPaymentGateway, IExpensivePaymentGateway expensivePaymentGateway, IPremiumPaymentGateway premiumPaymentGateway, IStatusRepository statusRepository) { _cheapPaymentGateway = cheapPaymentGateway; _expensivePaymentGateway = expensivePaymentGateway; _premiumPaymentGateway = premiumPaymentGateway; _statusRepo = statusRepository; }
public PedidoItemFornecedorBusiness(IPedidoItemFornecedorRepository pedidoItemFornecedorRepository, IFornecedorRepository fornecedorRepository, IStatusRepository statusRepository, Context context, IMapper mapper) : base(context) { _pedidoItemFornecedorRepository = pedidoItemFornecedorRepository; _fornecedorRepository = fornecedorRepository; _statusRepository = statusRepository; _mapper = mapper; }
public ConceptValidationService(IStatusRepository status, IMetadataRepository meta, ICategoryRepository category, IMediaTypeRepository mediaType, IOptions <LanguageConfig> language) { _statusRepository = status; _metadataRepository = meta; _categoryRepository = category; _mediaTypeRepository = mediaType; LanguageConfig = language.Value; }
public UsersController(ILoadDataService service, IStatusRepository serviceStatus, IRepository repository) { _service = service; _serviceStatus = serviceStatus; _repository = repository; }
public EnquiriesController(IContactRepository contactRepository, IAddressRepository addressRepository, IEnquiryRepository enquiryRepository, IStatusRepository statusRepository, IEnquiryDetailsRepository enquiryDetailsRepository) { this.contactRepository = contactRepository; this.addressRepository = addressRepository; this.enquiryRepository = enquiryRepository; this.statusRepository = statusRepository; this.enquiryDetailsRepository = enquiryDetailsRepository; }
public StudentsController(IStudentsRepository studentsRepository, IProfessorsRepository professorsRepository, ISubjectsRepository subjectsRepository, IDepartamentsRepository departamentsRepository, IStatusRepository statusRepository) { _studentsRepository = studentsRepository; _professorsRepository = professorsRepository; _subjectsRepository = subjectsRepository; _departamentsRepository = departamentsRepository; _statusRepository = statusRepository; }
public StatusesController(ILogger <StatusesController> log, IStatusRepository repo) { logger = log; repository = repo; statuses = new Statuses(logger, repository); logger.LogInformation("Statuses Controller"); }
public AccountsController(IContactRepository contactRepository, IAddressRepository addressRepository, IEnquiryRepository enquiryRepository, IStatusRepository statusRepository, IEnquiryDetailsRepository enquiryDetailsRepository, IClientRegisterRepository clientRegisterRepository) { this.contactRepository = contactRepository; this.addressRepository = addressRepository; this.enquiryRepository = enquiryRepository; this.statusRepository = statusRepository; this.enquiryDetailsRepository = enquiryDetailsRepository; this.clientRegisterRepository = clientRegisterRepository; }
public ProductionController(IContactRepository contactRepository, IAddressRepository addressRepository, IStatusRepository statusRepository, IEnquiryDetailsRepository enquirydetailsRepository, IEnquiryRepository enquiryRepository,IProjectRepository projectRepository,ITeamRepository teamRepository) { this.contactRepository = contactRepository; this.addressRepository = addressRepository; this.statusRepository = statusRepository; this.enquirydetailsRepository = enquirydetailsRepository; this.enquiryRepository = enquiryRepository; this.projectRepository = projectRepository; this.teamRepository = teamRepository; }
public StudentController(IBedrijfRepository bedrijfR, IStudentRepository studentR, IStagebegeleiderRepository stagebegeleiderR, IUserRepository usersRepository, ISpecialisatieRepository specialisatie, IOpdrachtRepository opdracht, IGemeenteRepository gemeenteRepository, IStatusRepository statusRepository) { this.bedrijfRepository = bedrijfR; this.stagebegeleiderRepository = stagebegeleiderR; this.studentRepository = studentR; this.userRepository = usersRepository; this.specialisatieRepository = specialisatie; this.opdrachtRepository = opdracht; this.gemeenteRepository = gemeenteRepository; this.statusRepository = statusRepository; }
public void ACRTestSetUp() { _status = FakeDatabase.StatusList(); _acr = FakeDatabase.AcrList(); _statusRepository = new Mock<IStatusRepository>(); _acrRepository = new Mock<IACRRepository>(); _acrRepository.Setup( a => a.GetACRStatus(It.IsAny<int>())).Returns(() => _status.Where(x => x.StatusId==_acr.FirstOrDefault().StatusId).Single().StatusName.ToString()); _statusRepository.Setup(s => s.All).Returns(_status.Where(i => i.IsActive==true).AsQueryable<StatusMaster>()); this._ACRRepository = _acrRepository.Object; this._StatusRepository = _statusRepository.Object; }
public void Init() { _status = FakeDatabase.StatusList(); _acr = FakeDatabase.AcrList(); _assigneeMapping = FakeDatabase.GetAssignees(); _statusRepository = new Mock<IStatusRepository>(); _acrRepository = new Mock<IACRRepository>(); _acrStatus = new ACRStatus(); _acrRepository.Setup(a => a.GetNumberOfAssignees(It.IsAny<int>())).Returns((int i) => _assigneeMapping.Where(m => m.ACRId==i).Count()); _acrRepository.Setup(a => a.GetACRStatus(It.IsAny<int>())).Returns(() => _status.Where(x => x.StatusId == _acr.FirstOrDefault().StatusId).Single().StatusName.ToString()); this._ACRRepository = _acrRepository.Object; this._StatusRepository = _statusRepository.Object; }
public static Opdracht CreateOpdrachtWhereAdresIsCompanyAdres(int aantalStudent,String schooljaar,String semesters, String title,String omschijving,String vaardigheden, String specialisatie,Bedrijf bedrijf, ISpecialisatieRepository repo,IGemeenteRepository gemeenteRepository,IStatusRepository statusRepository) { bool sem1 = false; bool sem2 = false; Adres adres = null; if (semesters.Equals("Semester 1")) { sem1 = true; } else if (semesters.Equals("Semester 2")) { sem2 = true; } else { sem1 = true; sem2 = true; } Status status = statusRepository.FindStatusWithId(1); Opdracht o = new Opdracht() { AantalStudenten = aantalStudent, Schooljaar = schooljaar, Omschrijving = omschijving, Vaardigheden = vaardigheden, IsSemester1 = sem1, IsSemester2 = sem2, Title = title, //Ondertekenaar = bedrijf.FindContactPersoon(viewModel.ContractOndertekenaar), //StageMentor = bedrijf.FindContactPersoon(viewModel.StageMentor), Specialisatie = repo.FindSpecialisatieNaam(specialisatie), Adres = bedrijf.Adres, Status = status }; return o; }
public StatusLogic(IUnitOfWork unit, IStatusRepository repo, ITeamLogic teamLogic) { this.Unit = unit; this.Repo = repo; this.TeamLogic = teamLogic; }
public StatusManagementService(IStatusRepository statusRepository) { Check.Require(statusRepository != null, "userRepository may not be null"); this.statusRepository = statusRepository; }
public StatusService(IStatusRepository statusRepository) { _statusRepository = statusRepository; }
public StatusService(IStatusRepository statuRepository) { this.statuRepository = statuRepository; }
public WallRepository(ApplicationDbContext dbContext) { this._db = dbContext; statusRepository = new StatusRepository(dbContext); shareRepository = new ShareRepository(dbContext); }
public EndowmentRepositories( IComplianceRoleRepository complianceRoles, IContactRepository contacts, IDepositoryRepository depositories, IGlobalRoleRepository globalRoles, IModeratorRepository moderators, IPersonRepository persons, IProjectRepository projects, IServiceDataRepository serviceData, IStatusRepository statuses, ITransactionRepository transactions, IUserRepository users, IProjectQueueRepository projectQueue, IProjectPriceRepository prices, IAcceptedProjectRepository acceptedProject, IHistoryProjectRepository historyProject, IModeratorLevelRepository moderatorLevel, ITempDepositoryRepository tempDepository, IVotingPeriodRepository votingPeriod, ITempDepositoryHistoryRepository tempDepositoryHistory, IContactTypesRepository contactTypes, ITransactionHistoryRepository transactionHistory, IVotingPeriodReportRepository votingPeriodReport) { ComplianceRoles = complianceRoles; Contacts = contacts; Depositories = depositories; GlobalRoles = globalRoles; Moderators = moderators; Persons = persons; Projects = projects; ServiceData = serviceData; Statuses = statuses; Transactions = transactions; Users = users; ProjectQueue = projectQueue; Prices = prices; AcceptedProject = acceptedProject; HistoryProject = historyProject; ModeratorLevel = moderatorLevel; TempDepository = tempDepository; VotingPeriod = votingPeriod; TempDepositoryHistory = tempDepositoryHistory; ContactTypes = contactTypes; TransactionHistory = transactionHistory; VotingPeriodReport = votingPeriodReport; }
public StatusController(IStatusRepository statusRepository) { this.statusRepository = statusRepository; }
public ActionResult StatusNewest() { string curUserId = User.Identity.GetUserId(); this._userRepository = new UserRepository(_dbContext); var curUser = this._userRepository.GetUserById(curUserId); ViewBag.curUser = curUser; // get status newest string preStatusId = (string)Session["preStatusId"]; this._statusRepository = new StatusRepository(this._dbContext); var listStatusNewest = this._statusRepository.GetListStatusNewest(curUserId, preStatusId); preStatusId = listStatusNewest.Last().StatusId; Session.Add("preStatusId", preStatusId); return View(listStatusNewest); }
public StatusBusiness() { this.repository = new StatusRepository(); }
public StatusService(IValidationDictionary validationDictionary) { _validationDictionary = validationDictionary; _repository = new EntityStatusRepository(); }
public void Init() { // init repository this._dbContext = new ApplicationDbContext(); this._chatRepository = new ChatRepository(this._dbContext); this._friendRepository = new FriendRepository(this._dbContext); this._privateMessageRepository = new PrivateMessageRepository(this._dbContext); this._statusRepository = new StatusRepository(this._dbContext); this._statusMessageRepository = new StatusMessageRepository(this._dbContext); this._statusLocationRepository = new StatusLocationRepository(this._dbContext); this._statusImageRepository = new StatusImageRepository(this._dbContext); this._likeRepository = new LikeRepository(this._dbContext); this._shareRepository = new ShareRepository(this._dbContext); this._commentRepository = new CommentRepository(this._dbContext); this._newFeedRepository = new NewFeedsRepository(this._dbContext); // get current connectionId this._curConnectionId = this.Context.ConnectionId; // get chatViewModel of User via connectionId this._curUserChat = this._chatRepository.GetUserByConnectionId(ConnectedUsers, this.Context.ConnectionId); // get friendListId this._friendListId = this._friendRepository.GetFriendListId(this._curUserChat.UserId).ToList(); // get friendListOnline this._friendListOnline = this._chatRepository.GetFriendListOnline(ConnectedUsers, this._friendListId, this._curUserChat.UserId); // get friendListConnectionId this._friendListConnectionId_Online = this._chatRepository.GetFriendList_ConnectionId(this._friendListOnline); this._allUserRelate_ConnectionId = this._chatRepository.GetAllUserRelate_ConnectionId(this._friendListConnectionId_Online, this._curUserChat.ConnectionId); }
public TasksController(IStatusRepository statusRepository, ITaskRepository taskRepository) { this.statusRepository = statusRepository; this.taskRepository = taskRepository; }