Exemple #1
0
 public ExperimentsController(IMapper mapper, IExperimentService experimentService, IResearchService researchService,
                              UserManager <AppUser> userManager)
 {
     this.mapper            = mapper;
     this.userManager       = userManager;
     this.experimentService = experimentService;
     this.researchService   = researchService;
 }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExperimentController"/> class
        /// </summary>
        /// <param name="experimentService">The experiment service</param>
        public ExperimentController(IExperimentService experimentService)
        {
            if (experimentService == null)
            {
                throw new ArgumentNullException("Experiment Service");
            }

            this.experimentService = experimentService;
        }
Exemple #3
0
        public ModelRepository(IExperimentService experimentService)
        {
            ExperimentService = experimentService;

            this.Experiments.RemovingItem += Experiments_RemovingItem;

            Task.Run(() => GetExperimentsFromService());
            Task.Run(() => GetPlatesFromService());
        }
Exemple #4
0
        public ABTest(
            RequestDelegate next,
            IExperimentService experimentService)
        {
            this.next = next;

            VersionsAssigned = new Dictionary<Experiment, string>();

            _experimentService = experimentService;
        }
 public ExperimentController(
     IExperimentService experimentService,
     ICurrentUserContext userContext,
     IMapper mapper,
     IOptions <ExperimentorSettings> experimentorSettings)
 {
     this.experimentService    = experimentService;
     this.userContext          = userContext;
     this.mapper               = mapper;
     this.experimentorSettings = experimentorSettings.Value;
 }
Exemple #6
0
 public StudentAuthorization()
 {
     InitializeComponent();
     _kernel            = new StandardKernel();
     _experimentService = _kernel.Get <ExperimentService>();
 }
 public ExperimentController(IExperimentAdminService expAdminService, IExperimentService expService, IPatientService patientService,
                             IZephyrAccelService zephyrAccelService, IZephyrBreathingService zephyrBreathingService, IZephyrECGService zephyrEcgService,
                             IZephyrEventDataService eventDataService, IZephyrSummaryService summaryService,
                             IZephyrBrRrService brRrService, IBasisPeakSummaryService basisPeakService,
                             IMSBandHeartRateService msBandHeartRateService, IPatientDataService patientDataService)
 {
     _experimentAdminService = expAdminService;
     _experimentService = expService;
     _patientService = patientService;
     _patientDataService = patientDataService;
     _zephyrAccelService = zephyrAccelService;
     _zephyrBreathingService = zephyrBreathingService;
     _zephyrEcgService = zephyrEcgService;
     _eventDataService = eventDataService;
     _summaryService = summaryService;
     _brRrService = brRrService;
     _patientService = patientService;
     _basisPeakService = basisPeakService;
     _msBandHeartRateService = msBandHeartRateService;
 }
 public MainController(IExperimentService experimentService)
 {
     ExperimentService = experimentService;
 }
 public ExperimentController(IExperimentService experimentService, ITestService testService, IExperimentSettingsService experimentSettingsService)
 {
     _experimentService         = experimentService;
     _testService               = testService;
     _experimentSettingsService = experimentSettingsService;
 }
Exemple #10
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="patientService">Interface for the patient service to access patient database queries</param>
 /// <param name="physicianService">Interface for the physician service to access physician database queries</param>
 /// <param name="experimentService">Interface for the experiment service to access experiment database queries</param>
 public PhysicianController(IPatientService patientService, IPhysicianService physicianService, IExperimentService experimentService)
 {
     _patientService = patientService;
     _physicianService = physicianService;
     _experimentService = experimentService;
 }
 public ExperimentsController(IExperimentService experimentService, IExperimentRepository experimentRepository, IUserRepository userRepository)
 {
     ExperimentService    = experimentService;
     ExperimentRepository = experimentRepository;
     UserRepository       = userRepository;
 }