public PositiveFormModel(AppDbContext context, IConfiguration config, ICaseService caseService, ITesterService testerService, IUserService userService, ITestingCentreService testingCentreService)
 {
     _CaseService          = caseService;
     _TesterService        = testerService;
     _UserService          = userService;
     _TestingCentreService = testingCentreService;
     _config  = config;
     CaseForm = new CaseForm();
 }
Example #2
0
 public DiagnosticsViewModel(ITesterService testerService, IDigitalIO digitalIO)
 {
     this.testerService = testerService;
     testerService.ProgramStateChanged += TesterService_ProgramStateEventHandler_Change;
     this.digitalIO = digitalIO;
     for (int i = 0; i < 8; i++)
     {
         iOView[i] = DigitalState.Unknown;
     }
     digitalIO.InputsRead += DigitalIO_InputsRead;
 }
 //Resolve dependencies and set initial statistic values
 public GovHomeModel(IConfiguration config, ICaseService caseService, IContactService contactService, ITracerService tracerService,
                     ITesterService testerService, ITracingCentreService tracingCentreService, ITestingCentreService testingCentreService)
 {
     _config               = config;
     _caseService          = caseService;
     _contactService       = contactService;
     _tracerService        = tracerService;
     _testerService        = testerService;
     _tracingCentreService = tracingCentreService;
     _testingCentreService = testingCentreService;
     SetStats();
 }
Example #4
0
 public SettingsViewModel(ITesterService testerService, TestSettings testSettings, ConfigurationSettings configurationSettings)
 {
     this.testerService         = testerService;
     this.testSettings          = testSettings;
     this.configurationSettings = configurationSettings;
     HardwareChannelCount       = 4;
     Repetitions         = 3;
     ValveMinInflateTime = 200;
     ValveMinDeflateTime = 200;
     ValveMaxDeflateTime = 30000;
     ValveMaxInflateTime = 30000;
     Baudrate            = 9600;
     testerService.ProgramStateChanged += TesterService_ProgramStateEventHandler_Change;
     baudrateOptions.Add(9600);
     baudrateOptions.Add(10417);
     baudrateOptions.Add(19200);
 }
Example #5
0
 public JoggingViewModel(ITesterService testerService, IValveManager valveManager, IDriver driver, TestSettings testSettings, ConfigurationSettings configurationSettings, IDigitalIO digitalIO)
 {
     this.digitalIO             = digitalIO;
     this.driver                = driver;
     this.testerService         = testerService;
     this.testSettings          = testSettings;
     this.configurationSettings = configurationSettings;
     this.valveManager          = valveManager;
     valveTypes.Add(new ValveModel("", "Sprawdzanie obecności"));
     valveTypes.Add(new ValveModel("2Up", "GM MBM 2UP LIN"));
     valveTypes.Add(new ValveModel("3_5Up", "JLR 3,5UP LIN"));
     valveTypes.Add(new ValveModel("6Up", "GM MBM 6UP LIN"));
     SelectedType        = valveTypes[0];
     IsLogInDataSelected = true;
     valveManager.ActiveErrorsChanged     += ValveManager_ActiveErrorsChanged;
     valveManager.OccuredErrorsChanged    += ValveManager_OccuredErrorsChanged;
     valveManager.ResultChanged           += ValveManager_ResultChanged;
     valveManager.CommunicationLogChanged += CommunicationLogChanged;
     testerService.ProgramStateChanged    += TesterService_ProgramStateEventHandler_Change;
     driver.CommunicationLogChanged       += CommunicationLogChanged;
     digitalIO.CommunicationLogChanged    += CommunicationLogChanged;
 }
Example #6
0
 public HistoryController(ITesterService testerService)
 {
     tester = testerService;
 }
Example #7
0
 public MainWindowViewModel(ITesterService testerService)
 {
     this.testerService = testerService;
 }
Example #8
0
 public HomeController(ITesterService testerService)
 {
     tester             = testerService;
     ViewBag.Urls       = new List <string>();
     ViewBag.TestResult = new TestDto();
 }
 public UserService(ITracerService tracerService, ITesterService testerService)
 {
     _TracerService = tracerService;
     _TesterService = testerService;
 }