public void InitializeServicesWithAuthenticationType(AuthenticationType type)
 {
     if (type == AuthenticationType.Basic)
     {
         this._userService       = new UserService(AuthenticationType.Basic);
         this._issueService      = new IssueService(AuthenticationType.Basic);
         this._transitionService = new TransitionService(AuthenticationType.Basic);
         this._priorityService   = new PriorityService(AuthenticationType.Basic);
         this._attachmentService = new AttachmentService(AuthenticationType.Basic);
         this._boardService      = new BoardService(AuthenticationType.Basic);
         this._sprintService     = new SprintService(AuthenticationType.Basic);
         this._projectService    = new ProjectService(AuthenticationType.Basic);
     }
     else if (type == AuthenticationType.OAuth)
     {
         this._userService       = new UserService(AuthenticationType.OAuth);
         this._issueService      = new IssueService(AuthenticationType.OAuth);
         this._transitionService = new TransitionService(AuthenticationType.OAuth);
         this._priorityService   = new PriorityService(AuthenticationType.OAuth);
         this._attachmentService = new AttachmentService(AuthenticationType.OAuth);
         this._boardService      = new BoardService(AuthenticationType.OAuth);
         this._sprintService     = new SprintService(AuthenticationType.OAuth);
         this._projectService    = new ProjectService(AuthenticationType.OAuth);
     }
 }
 public static IDisposable EnterTransition(this ITransitionService service,
                                           bool effective       = true,
                                           bool forward         = true,
                                           object waitParameter = null)
 {
     return(new TransitionBatch(effective ? service : null, forward, waitParameter));
 }
 public PublishController(IDataService dataService, IEnrichmentService enrichmentservice, ITransitionService transitionService, ISearchAndCompareService searchAndCompareService, IManageCoursesBackendService manageCoursesBackendService)
 {
     _dataService                 = dataService;
     _searchAndCompareService     = searchAndCompareService;
     _manageCoursesBackendService = manageCoursesBackendService;
     _enrichmentservice           = enrichmentservice;
     _transitionService           = transitionService;
 }
 public TransitionBatch(ITransitionService service, bool forward, object waitParameter)
 {
     this.service = service;
     if (service != null)
     {
         service.StartTransition(forward, waitParameter);
     }
 }
Пример #5
0
        public ScreenConductor(IScreenFactoryRegistry factoryRegistry, IRegionManager regionManager, IAppSettings appSettings, IUserSession userSession, ITransitionService transitionService)
        {
            _factoryRegistry   = factoryRegistry;
            _regionManager     = regionManager;
            _appSettings       = appSettings;
            _screenDictionary  = new Dictionary <Guid, IScreen>();
            _userSession       = userSession;
            _transitionService = transitionService;

            WireUpEvents();
        }
Пример #6
0
        protected PageViewModelBase(ITransitionService transitionService, IDataStore dataStore)
        {
            if (transitionService == null)
            {
                throw new ArgumentNullException(nameof(transitionService));
            }
            _transitionService = transitionService;
            _dataStore         = dataStore;

            NextCommand = new DelegateCommand(ExecuteNextCommand);
            PrevCommand = new DelegateCommand(ExecutePrevCommand);
        }
Пример #7
0
 public NavigationService(IActivityLifeTimeMonitor activityLifeTimeMonitor,
                          ITransitionService transitionService,
                          INavigationDrawer navigationDrawer,
                          IParamsHolder paramsHolder,
                          Dictionary <Type, Tuple <Type, int> > customMappings)
 {
     _activityLifeTimeMonitor = activityLifeTimeMonitor;
     _transitionService       = transitionService;
     _navigationDrawer        = navigationDrawer;
     _paramsHolder            = paramsHolder;
     _customMappings          = customMappings;
     InitPagesMappings();
 }
Пример #8
0
        protected override void Setup()
        {
            Service = new TransitionService(Context);


            var providers = SetupProviders
                            .Select(x => new OrganisationProvider
            {
                Provider = x,
            }).ToList();

            var currentRecruitmentCycle = new RecruitmentCycle {
                Year = RecruitmentCycle.CurrentYear
            };

            foreach (var item in providers)
            {
                item.Provider.RecruitmentCycle = currentRecruitmentCycle;
            }

            var user = new User
            {
                Email = Email,
            };

            Context.Add(user);

            var org = new Organisation
            {
                Name              = "Bucks Mega Org",
                OrgId             = "BMO1",
                OrganisationUsers = new List <OrganisationUser>
                {
                    new OrganisationUser
                    {
                        User = user,
                    },
                },
                OrganisationProviders = providers
            };

            Context.Add(org);

            Context.SaveChanges();
        }
Пример #9
0
 public ServiceFactory(IAuthenticationService authenticationService,
                       IActionTypeService actionTypeService,
                       IBillService billService,
                       ICountryService countryService,
                       ICurrencyService currencyService,
                       IDocumentService documentService,
                       IEmployeeService employeeService,
                       IIssueLogService issueLogService,
                       IIssueService issueService,
                       ILocationService locationService,
                       IMalfunctionGroupService malfunctionGroupService,
                       IMalfunctionService malfunctionService,
                       IMalfunctionSubgroupService malfunctionSubgroupService,
                       IPostService postService,
                       IStateService stateService,
                       ISupplierService supplierService,
                       ITransitionService transitionService,
                       IUserService userService,
                       IVehicleService vehicleService,
                       IVehicleTypeService vehicleTypeService)
 {
     AuthenticationService      = authenticationService;
     ActionTypeService          = actionTypeService;
     BillService                = billService;
     CountryService             = countryService;
     CurrencyService            = currencyService;
     DocumentService            = documentService;
     EmployeeService            = employeeService;
     IssueLogService            = issueLogService;
     IssueService               = issueService;
     LocationService            = locationService;
     MalfunctionGroupService    = malfunctionGroupService;
     MalfunctionService         = malfunctionService;
     MalfunctionSubgroupService = malfunctionSubgroupService;
     PostService                = postService;
     StateService               = stateService;
     SupplierService            = supplierService;
     TransitionService          = transitionService;
     UserService                = userService;
     VehicleService             = vehicleService;
     VehicleTypeService         = vehicleTypeService;
 }
Пример #10
0
 protected FragmentBase(int layoutResId)
 {
     _layoutResId      = layoutResId;
     TransitionService = ServiceLocator.Current.GetInstance <ITransitionService>();
 }
Пример #11
0
 public TransitionBatch(ITransitionService service, bool effective)
 {
     this.effective = effective;
     this.service   = service;
     service.StartTransition(effective);
 }
Пример #12
0
 public IssueController(IGiraUoW db, ITransitionService transitionService)
 {
     _db = db;
     _transitionService = transitionService;
 }
Пример #13
0
 public static IDisposable EnterTransition(this ITransitionService service, bool effective)
 {
     return(new TransitionBatch(service, effective));
 }
Пример #14
0
        public IssueDetailView(JiraToolWindowNavigatorViewModel parent, Issue issue, Project project,
                               IIssueService issueService, IPriorityService priorityService, ITransitionService transitionService,
                               IAttachmentService attachmentService, IUserService userService, IBoardService boardService, IProjectService projectService)
        {
            InitializeComponent();

            this._viewModel = new IssueDetailViewModel(parent, issue, project,
                                                       issueService, priorityService, transitionService,
                                                       attachmentService, userService, boardService, projectService);
            this.DataContext = this._viewModel;
        }
Пример #15
0
 public TransitionBatch(ITransitionService service, bool forward, object waitParameter) {
     this.service = service;
     if(service != null)
         service.StartTransition(forward, waitParameter);
 }
Пример #16
0
 public MusicViewModel(ITransitionService transitionService, IDataStore dataStore) : base(transitionService, dataStore)
 {
 }
Пример #17
0
 public AirControllerViewModel(ITransitionService transitionService, IDataStore dataStore) : base(transitionService, dataStore)
 {
 }
Пример #18
0
 public TransitionController(IServiceFactory serviceFactory, IFilterServiceFactory filterServiceFactory)
     : base(filterServiceFactory)
 {
     _transitionService = serviceFactory.TransitionService;
 }
Пример #19
0
 public DrawingViewModel(ITransitionService transitionService, IDataStore dataStore) : base(transitionService, dataStore)
 {
 }