public WorkgroupServiceTests() { AutomapperConfig.Configure(); VendorRepository = MockRepository.GenerateStub<IRepositoryWithTypedId<Vendor, string>>(); VendorAddressRepository = MockRepository.GenerateStub<IRepositoryWithTypedId<VendorAddress, Guid>>(); UserRepository = MockRepository.GenerateStub<IRepositoryWithTypedId<User, string>>(); EmailPreferencesRepository = MockRepository.GenerateStub<IRepositoryWithTypedId<EmailPreferences, string>>(); WorkgroupPermissionRepository = MockRepository.GenerateStub<IRepository<WorkgroupPermission>>(); WorkgroupRepository = MockRepository.GenerateStub<IRepository<Workgroup>>(); OrganizationRepository = MockRepository.GenerateStub<IRepositoryWithTypedId<Organization, string>>(); SearchService = MockRepository.GenerateStub<IDirectorySearchService>(); RepositoryFactory = MockRepository.GenerateStub<IRepositoryFactory>(); RepositoryFactory.RoleRepository = MockRepository.GenerateStub<IRepositoryWithTypedId<Role, string>>(); RepositoryFactory.WorkgroupPermissionRepository = WorkgroupPermissionRepository; RepositoryFactory.AccountRepository = MockRepository.GenerateStub<IRepositoryWithTypedId<Account, string>>(); QueryRepositoryFactory = MockRepository.GenerateStub<IQueryRepositoryFactory>(); UserIdentity = MockRepository.GenerateStub<IUserIdentity>(); QueryRepositoryFactory.RelatatedWorkgroupsRepository = MockRepository.GenerateStub<IRepository<RelatedWorkgroups>>(); WorkgroupService = new WorkgroupService(VendorRepository, VendorAddressRepository, UserRepository, EmailPreferencesRepository, WorkgroupPermissionRepository, WorkgroupRepository, OrganizationRepository, SearchService, RepositoryFactory, QueryRepositoryFactory, UserIdentity); }
public SearchController(ISearchService searchService, IQueryRepositoryFactory queryRepositoryFactory, IUserIdentity userIdentity, IAccessQueryService accessQueryService) { _searchService = searchService; _queryRepositoryFactory = queryRepositoryFactory; _userIdentity = userIdentity; _accessQueryService = accessQueryService; }
public NotificationServiceTests() { EmailRepository = MockRepository.GenerateStub<IRepositoryWithTypedId<EmailQueue, Guid>>(); EmailPreferenceRepository = MockRepository.GenerateStub < IRepositoryWithTypedId<EmailPreferences, string>>(); UserIdentity = MockRepository.GenerateStub<IUserIdentity>(); UserRepository = MockRepository.GenerateStub<IRepositoryWithTypedId<User, string>>(); OrderStatusCodeRepository = MockRepository.GenerateStub<IRepositoryWithTypedId<OrderStatusCode, string>>(); ServerLink = MockRepository.GenerateStub<IServerLink>(); QueryRepositoryFactory = MockRepository.GenerateStub<IQueryRepositoryFactory>(); RepositoryFactory = MockRepository.GenerateStub<IRepositoryFactory>(); RepositoryFactory.OrganizationRepository = MockRepository.GenerateStub<IRepositoryWithTypedId<Organization, string>>(); AdminWorkgroupRepository = MockRepository.GenerateStub<IRepository<AdminWorkgroup>>(); QueryRepositoryFactory.AdminWorkgroupRepository = AdminWorkgroupRepository; WorkgroupRepository = MockRepository.GenerateStub<IRepository<Workgroup>>(); RepositoryFactory.WorkgroupRepository = WorkgroupRepository; NotificationService = new NotificationService(EmailRepository, EmailPreferenceRepository, UserRepository, OrderStatusCodeRepository, UserIdentity, ServerLink, QueryRepositoryFactory, RepositoryFactory); ServerLink.Expect(a => a.Address).Return("FakeHost").Repeat.Any(); ApprovalRepository = MockRepository.GenerateStub<IRepository<Approval>>(); SetupOrderStatusCodes(); }
public DepartmentalAdminRequestController(IRepositoryWithTypedId<DepartmentalAdminRequest, string> departmentalAdminRequestRepository, IRepositoryFactory repositoryFactory, IQueryRepositoryFactory queryRepositoryFactory, IDirectorySearchService directorySearchService, IUserIdentity userIdentity) { _departmentalAdminRequestRepository = departmentalAdminRequestRepository; _repositoryFactory = repositoryFactory; _queryRepositoryFactory = queryRepositoryFactory; _directorySearchService = directorySearchService; _userIdentity = userIdentity; }
public SecurityServiceTests() { RepositoryFactory = MockRepository.GenerateStub<IRepositoryFactory>(); AccessQueryService = MockRepository.GenerateStub<IAccessQueryService>(); QueryRepositoryFactory = MockRepository.GenerateStub<IQueryRepositoryFactory>(); UserIdentity = MockRepository.GenerateStub<IUserIdentity>(); DirectorySearchService = MockRepository.GenerateStub<IDirectorySearchService>(); SecurityService = new SecurityService(RepositoryFactory, UserIdentity, DirectorySearchService, AccessQueryService, QueryRepositoryFactory); }
/* strings to be used in the messages */ //private const string ApprovalMessage = "Order request {0} for {1} has been approved by {2} at {3} review."; //private const string CancellationMessage = "Order request {0} for {1} has been cancelled by {2} at {3} review with the following comment \"{4}\"."; //private const string UpdateInKualiMessage = "Order request {0} for {1} has been updated in Kuali to {2}."; //private const string ChangeMessage = "Order request {0} for {1} has been changed by {2}."; //private const string SubmissionMessage = "Order request {0} for {1} has been submitted."; //private const string ArrivalMessage = "Order request {0} for {1} has arrived at your level ({2}) for review from {3}{4}."; //private const string CompleteMessage = "Order request {0} for {1} has been completed by {2}. Order will be completed as a {3}."; //private const string ReceiveMessage = "Order request {0} for {1} has {2} item(s) received."; //private const string RerouteMessage = "Order request {0} for {1} has been rerouted to you."; //private const string AddAttachmentMessage = "Order request {0} for {1} has a new attachment added by {2}"; //private const string AddNoteMessage = "Order request {0} for {1} has a new note added by {2}"; public NotificationService(IRepositoryWithTypedId<EmailQueue, Guid> emailRepository, IRepositoryWithTypedId<EmailPreferences, string> emailPreferenceRepository, IRepositoryWithTypedId<User, string> userRepository, IRepositoryWithTypedId<OrderStatusCode, string> orderStatusCodeRepository, IUserIdentity userIdentity, IServerLink serverLink, IQueryRepositoryFactory queryRepositoryFactory, IRepositoryFactory repositoryFactory ) { _emailRepository = emailRepository; _emailPreferenceRepository = emailPreferenceRepository; _userRepository = userRepository; _orderStatusCodeRepository = orderStatusCodeRepository; _userIdentity = userIdentity; _serverLink = serverLink; //_serverLink = "prepurchasing.ucdavis.edu"; _queryRepositoryFactory = queryRepositoryFactory; _repositoryFactory = repositoryFactory; }
public static ReportWorkloadViewModel Create(IRepositoryFactory repositoryFactory, IQueryRepositoryFactory queryRepositoryFactory, IWorkgroupService workgroupService, string userName, Workgroup workgroup) { var workgroups = workgroupService.LoadAdminWorkgroups(); var viewModel = new ReportWorkloadViewModel() { Workgroups = workgroups, Workgroup = workgroup }; return viewModel; }
public OrderController( IRepositoryFactory repositoryFactory, IOrderService orderService, ISecurityService securityService, IDirectorySearchService directorySearchService, IFinancialSystemService financialSystemService, IQueryRepositoryFactory queryRepository, IEventService eventService, IBugTrackingService bugTrackingService, IFileService fileService) { _orderService = orderService; _repositoryFactory = repositoryFactory; _securityService = securityService; _directorySearchService = directorySearchService; _financialSystemService = financialSystemService; _queryRepository = queryRepository; _eventService = eventService; _bugTrackingService = bugTrackingService; _fileService = fileService; }
public WorkgroupService(IRepositoryWithTypedId<Vendor, string> vendorRepository, IRepositoryWithTypedId<VendorAddress, Guid> vendorAddressRepository, IRepositoryWithTypedId<User, string> userRepository, IRepositoryWithTypedId<EmailPreferences, string> emailPreferencesRepository, IRepository<WorkgroupPermission> workgroupPermissionRepository, IRepository<Workgroup> workgroupRepository, IRepositoryWithTypedId<Organization, string> organizationRepository, IDirectorySearchService searchService, IRepositoryFactory repositoryFactory, IQueryRepositoryFactory queryRepositoryFactory, IUserIdentity userIdentity) { _vendorRepository = vendorRepository; _vendorAddressRepository = vendorAddressRepository; _userRepository = userRepository; _emailPreferencesRepository = emailPreferencesRepository; _workgroupPermissionRepository = workgroupPermissionRepository; _workgroupRepository = workgroupRepository; _organizationRepository = organizationRepository; _searchService = searchService; _repositoryFactory = repositoryFactory; _queryRepositoryFactory = queryRepositoryFactory; _userIdentity = userIdentity; }
public RequestHandler(IUnitOfWorkAsync uow, IQueryRepositoryFactory qrf, ICatalogGateway catalogGateway, NoTaxCaculator priceCalculator) : base(uow, qrf) { _catalogGateway = catalogGateway; _priceCalculator = priceCalculator; }
public CartRequestHandler(IUnitOfWorkAsync uow, IQueryRepositoryFactory qrf) : base(uow, qrf) { }
public HistoryAjaxController(IQueryRepositoryFactory queryRepositoryFactory, IOrderService orderService, IDbService dbService) { _queryRepositoryFactory = queryRepositoryFactory; _orderService = orderService; _dbService = dbService; }
public OrderService(IRepositoryFactory repositoryFactory, IEventService eventService, IUserIdentity userIdentity, ISecurityService securityService, IRepository<WorkgroupPermission> workgroupPermissionRepository, IRepository<Approval> approvalRepository, IRepository<OrderTracking> orderTrackingRepository, IRepositoryWithTypedId<Organization, string> organizationRepository, //IRepositoryWithTypedId<User, string> userRepository, IRepository<Order> orderRepository, IQueryRepositoryFactory queryRepositoryFactory, IAccessQueryService accessQueryService, IFinancialSystemService financialSystemService, IIndexService indexService) { _repositoryFactory = repositoryFactory; _eventService = eventService; _userIdentity = userIdentity; _securityService = securityService; _workgroupPermissionRepository = workgroupPermissionRepository; _approvalRepository = approvalRepository; _orderTrackingRepository = orderTrackingRepository; _organizationRepository = organizationRepository; //_userRepository = userRepository; _orderRepository = orderRepository; _queryRepositoryFactory = queryRepositoryFactory; _accessQueryService = accessQueryService; _financialSystemService = financialSystemService; _indexService = indexService; }
public RequestHandler(IQueryRepositoryFactory queryRepositoryFactory) : base(queryRepositoryFactory) { }
public RequestHandler(IUnitOfWorkAsync uow, IQueryRepositoryFactory queryRepositoryFactory) : base(uow, queryRepositoryFactory) { }
public OrganizationController(IRepositoryWithTypedId <Organization, string> organizationRepository, IQueryRepositoryFactory queryRepositoryFactory, ISecurityService securityService) { _organizationRepository = organizationRepository; _queryRepositoryFactory = queryRepositoryFactory; _securityService = securityService; }
public ReviewController(IQueryRepositoryFactory queryRepositoryFactory, IRepositoryAsyncFactory repositoryFactory) { _queryRepositoryFactory = queryRepositoryFactory; _repositoryFactory = repositoryFactory; }
public OrganizationController(IRepositoryWithTypedId<Organization, string> organizationRepository, IQueryRepositoryFactory queryRepositoryFactory, ISecurityService securityService) { _organizationRepository = organizationRepository; _queryRepositoryFactory = queryRepositoryFactory; _securityService = securityService; }