public Runner(ITestEngine engine, HostedOptions options) { _engine = engine; _options = options; _resultService = _engine.Services.GetService <IResultService>(); _filterService = _engine.Services.GetService <ITestFilterService>(); }
public UserController(IUserService userService, ITestPassService testPassService, IResultService resultService) { _userService = userService; _testPassService = testPassService; _resultService = resultService; }
public void Initialize() { _mockRepository = new Mock <IResultRepository>(); _service = new ResultService(_mockRepository.Object); _evaluation = new Evaluation(); _student = new Student(); }
public Runner(ITestEngine engine, HostedOptions options) { _engine = engine; _options = options; _resultService = _engine.Services.GetService<IResultService>(); _filterService = _engine.Services.GetService<ITestFilterService>(); }
public EvaluationContext( string name, ISpiceNetlistCaseSensitivitySettings caseSettings, IRandomizer randomizer, IExpressionParserFactory expressionParserFactory, IExpressionFeaturesReader expressionFeaturesReader, IExpressionValueProvider expressionValueProvider, INameGenerator nameGenerator, IResultService resultService) { _caseSettings = caseSettings; ExpressionParserFactory = expressionParserFactory; ExpressionFeaturesReader = expressionFeaturesReader; ExpressionValueProvider = expressionValueProvider; NameGenerator = nameGenerator; ResultService = resultService; Name = name; Parameters = new Dictionary <string, Expression>(StringComparerProvider.Get(caseSettings.IsParameterNameCaseSensitive)); Arguments = new Dictionary <string, Expression>(StringComparerProvider.Get(caseSettings.IsParameterNameCaseSensitive)); Functions = new Dictionary <string, List <IFunction> >(StringComparerProvider.Get(caseSettings.IsFunctionNameCaseSensitive)); Children = new List <EvaluationContext>(); ExpressionRegistry = new ExpressionRegistry(caseSettings.IsParameterNameCaseSensitive, caseSettings.IsExpressionNameCaseSensitive); FunctionsBody = new Dictionary <string, string>(); FunctionArguments = new Dictionary <string, List <string> >(); Randomizer = randomizer; }
public EventController(IEventService eventService, IDisciplineService disciplineService, ICourseService courseService, IDeviceService deviceService, ICompetitionService competitionService, IAdminService adminService, IChipService chipService, IHeatService heatService, IResultService resultService, IAccountService accountService, IMemoryCache cache, ICategoryService categoryService) { _disciplineService = disciplineService; _eventService = eventService; _courseService = courseService; _deviceService = deviceService; _competitionService = competitionService; _adminService = adminService; _chipService = chipService; _heatService = heatService; _resultService = resultService; _cache = cache; _accountService = accountService; _categoryService = categoryService; }
public SpiceEvaluationContext( string name, SpiceExpressionMode mode, ISpiceNetlistCaseSensitivitySettings caseSetting, IRandomizer randomizer, IExpressionParserFactory expressionParserFactory, IExpressionFeaturesReader expressionFeaturesReader, IExpressionValueProvider expressionValueProvider, INameGenerator nameGenerator, IResultService resultService) : base(name, caseSetting, randomizer, expressionParserFactory, expressionFeaturesReader, expressionValueProvider, nameGenerator, resultService) { Mode = mode; CreateCommonFunctions(); CreateSpiceFunctions(); CreateSpiceParameters(); }
public UserController(IUserService userService, IResultService resultService, SignInManager <User> signInManager, IConfiguration config) { _userService = userService; _resultService = resultService; _signInManager = signInManager; _config = config; }
public CommonController (ITestService testService, IQuestionService questionService, IResultService resultService) { _testService = testService; _questionService = questionService; _resultService = resultService; }
/// <summary> /// Initializes a new instance of the <see cref="CircuitContext"/> class. /// </summary> /// <param name="contextName">Name of the context.</param> /// <param name="parent">Parent of the context.</param> /// <param name="evaluator">Circuit evaluator.</param> /// <param name="simulationPreparations">Simulation preparations.</param> /// <param name="resultService">SpiceModel service for the context.</param> /// <param name="nameGenerator">Name generator for the models.</param> /// <param name="statementsReader">Statements reader.</param> /// <param name="waveformReader">Waveform reader.</param> /// <param name="caseSettings">Case settings.</param> /// <param name="exporters">Exporters.</param> /// <param name="workingDirectory">Working directory.</param> /// <param name="instanceData">Instance data.</param> public CircuitContext( string contextName, ICircuitContext parent, ICircuitEvaluator evaluator, ISimulationPreparations simulationPreparations, IResultService resultService, INameGenerator nameGenerator, ISpiceStatementsReader statementsReader, IWaveformReader waveformReader, ISpiceNetlistCaseSensitivitySettings caseSettings, IMapper <Exporter> exporters, string workingDirectory) { Name = contextName ?? throw new ArgumentNullException(nameof(contextName)); Evaluator = evaluator; SimulationPreparations = simulationPreparations; Result = resultService ?? throw new ArgumentNullException(nameof(resultService)); NameGenerator = nameGenerator ?? throw new ArgumentNullException(nameof(nameGenerator)); Parent = parent; Children = new List <ICircuitContext>(); CaseSensitivity = caseSettings; StatementsReader = statementsReader; WaveformReader = waveformReader; AvailableSubcircuits = CreateAvailableSubcircuitsCollection(); ModelsRegistry = CreateModelsRegistry(); Exporters = exporters; WorkingDirectory = workingDirectory; }
public ResultsController(IResultService results, IQuestionService questions, IExerciseService exercises, IStateService state) { _results = results; _questions = questions; _exercises = exercises; _state = state; }
public ResultController(IResultService <Result> resultService, IQuestionService <Question> questionService, IRecognizeService recognizeService, IOptionService <Option> optionService) { _resultService = resultService; _questionService = questionService; _recognizeService = recognizeService; _optionService = optionService; }
public ProfileController(IUserService userService, ITestService testService, IResultService resultService, IRoleService roleService) { this._userService = userService; this._resulttService = resultService; this._roleService = roleService; this._testService = testService; }
public TestController(IUserService userService, ITestService testService, IQuestionService questionService, IResultService resultService) { this.userService = userService; this.testService = testService; this.questionService = questionService; this.resultService = resultService; }
public TaskService( SteamfitterContext context, IAuthorizationService authorizationService, IPrincipal user, IMapper mapper, IStackStormService stackStormService, IOptions <VmTaskProcessingOptions> options, IResultService resultService, ILogger <TaskService> logger, IPlayerService playerService, IPlayerVmService playerVmService, IHttpClientFactory httpClientFactory, ClientOptions clientSettings, IHubContext <EngineHub> engineHub, ITaskExecutionQueue taskexecutionQueue) { _context = context; _authorizationService = authorizationService; _user = user as ClaimsPrincipal; _mapper = mapper; _stackStormService = stackStormService; _options = options.Value; _resultService = resultService; _httpClientFactory = httpClientFactory; _logger = logger; _playerService = playerService; _playerVmService = playerVmService; _isHttps = clientSettings.urls.playerApi.ToLower().StartsWith("https:"); _engineHub = engineHub; _taskExecutionQueue = taskexecutionQueue; }
public TestingController(ICategoryService categoryService, ITestService testService, IQuestionService questionService, IResultService resultService) { this.categoryService = categoryService; this.testService = testService; this.questionService = questionService; this.resultService = resultService; handler = new Handler(); }
public AdminController(ITestService testService, IResultService resultService, IUserService userService, IRoleService roleService) { this._testService = testService; this._resultService = resultService; this._userService = userService; this._roleService = roleService; }
public CachedLoadResultService( ISetting config, IRepositoryRegistry context, ISeadQueryCache cache, IResultService service, IBogusPickService bogusPickService) : base(config, context, cache, service, bogusPickService) { Cache = cache; }
public TakeTestController(UserManager <User> userManager, ITestService testService, IAnswerService answerService, IResultService resultService, IMappingProvider mapper, IUserService userService, ISaver saver) { this.userManager = userManager; this.testService = testService; this.resultService = resultService; this.userService = userService; this.mapper = mapper; this.saver = saver; }
public ResultOrganizer(IResultService resultService) { if (resultService == null) { throw new ArgumentNullException(nameof(resultService)); } this.resultService = resultService; }
public ResultController(IQuestionService questionService, IQuestionAnswerService questionAnswerService, IUserAnswerService userAnswerService, IResultService resultService, ITestService testService) { this.QuestionService = questionService; this.QuestionAnswerService = questionAnswerService; this.UserAnswerService = userAnswerService; this.ResultService = resultService; this.TestService = testService; }
public void Initialize() { BaseSqlTests.SeedDatabase(); _repository = new ResultRepository(); _service = new ResultService(_repository); _student = ObjectMother.GetExistentValidStudent(); _evaluation = ObjectMother.GetExistentValidEvaluation(); }
public HomeController(IAccountService accountService, IThemeService themeService, ITestService testService, IQuestionService questionService, IAnswerService answerService, IResultService resultService) { _accountService = accountService; _themeService = themeService; _testService = testService; _questionService = questionService; _answerService = answerService; _resultService = resultService; }
public ReportController(IResultService resultService, IStudentService studentService, IClassService classService, ISubjectService subjectService, ISemesterService semesterService, IReportService reportService, IExistHelper exist) { _resultService = resultService; _studentService = studentService; _classService = classService; _subjectService = subjectService; _semesterService = semesterService; _reportService = reportService; resp = new ResponseHelper(); }
public SchoolClassesController(PeSportsTrackingContext context, IChartDataService chartDataService, Messages messages, IResultService resultService, ISchoolClassMapper schoolClassMapper, IExerciseMapper exerciseMapper) { _context = context; _chartDataService = chartDataService; _messages = messages; _resultService = resultService; _schoolClassMapper = schoolClassMapper; _exerciseMapper = exerciseMapper; }
public StudentController(IQuestService questService, IAnswerService answerService, IUserService userService, IQuestionService questionService, IResultService resultService, IImageSrvice imageService) { this.questService = questService; this.answerService = answerService; this.userService = userService; this.questionService = questionService; this.resultService = resultService; this.imageService = imageService; }
public TimeAttackPageViewModel(INavigationService navigationService, IResultService resultService, IUserService userService) : base(navigationService) { this.userService = userService; this.resultService = resultService; this.timer = new Timer(100); timer.Elapsed += (s, e) => { if (this.elapsedTime < TimeAttackPageViewModel.timeLimit) { this.elapsedTime = this.elapsedTime.Add(TimeSpan.FromMilliseconds(100)); this.RaisePropertyChanged(() => this.ElapsedTimeText); (this.ShowAnswer as DelegateCommand).RaiseCanExecuteChanged(); } }; this.Numbers = new NameCommand[] { new NameCommand("", this.OnPushNumber), new NameCommand("", this.OnPushNumber), new NameCommand("", this.OnPushNumber), new NameCommand("", this.OnPushNumber), }; this.Operators = Calculator.OperatorDictionary.Keys.Select(k => new NameCommand(k, this.OnPushOperator)).ToArray(); this.resultCount = 0; this.inputHistory = new ObservableCollection <NameCommand>(); this.inputHistory.CollectionChanged += (s, e) => { this.TurnToInputNumber = this.inputHistory.Count() == 0 || Calculator.OperatorDictionary.ContainsKey(this.inputHistory.Last().Name); this.Answer = Calculator.Calculate(this.inputHistory.Select(nc => nc.Name)); if (this.Answer == "10" && this.Numbers.All(n => !n.IsEnabled)) { this.OnProblemSolved(navigationService); } }; this.Clear = new DelegateCommand(() => { this.OnClear(clearTime: false); }); this.ShowAnswer = new DelegateCommand(() => { var answerFormula = Calculator.ValidateNumbers(this.Numbers.Select(n => int.Parse(n.Name))); this.DisplayNotification <TimeAttackPageViewModel>( "答え", answerFormula == null ? "bug" : string.Join("→", answerFormula.Select(s => $"[{s}]")), () => {}); }, () => this.elapsedTime >= TimeAttackPageViewModel.timeLimit); }
public BulkResultLoader(ICsvHelperService <ResultCsvRecordRequest, CsvResponseModel <ResultCsvRecordResponse>, ResultCsvRecordResponse> csvService, IResultService resultService, IBlobStorageService blobStorageService, IDocumentUploadHistoryService documentUploadHistoryService, ILogger <BulkResultLoader> logger) : base(blobStorageService, documentUploadHistoryService) { _csvService = csvService; _resultService = resultService; _blobStorageService = blobStorageService; _logger = logger; }
public HomeController(ICommonDbService commonDbService, IDataContextFactory dataContextFactory, INominationService nominationService, IResultService resultService, ILogger logger, ICustomDateService customDateService) { _commonDbService = commonDbService; _encourageDatabaseContext = dataContextFactory.CreateEncourageDbContext(); _commonDbContext = commonDbService.GetCommonDataBaseContext(); _nominationService = nominationService; _resultService = resultService; _logger = logger; _customDateService = customDateService; }
public JobService ( IPlayerService playerService, IResultService resultService, IRatingJobRepository ratingJobRepository ) { _playerService = playerService; _resultService = resultService; _ratingJobRepository = ratingJobRepository; }
public DashboardController( ITestService testService, IResultService resultService, IMappingProvider mapper, IMemoryCache memoryCache) { this.testService = testService; this.resultService = resultService; this.mapper = mapper; this.memoryCache = memoryCache; }
public ConsoleRunner(ITestEngine engine, ConsoleOptions options, ExtendedTextWriter writer) { _engine = engine; _options = options; _outWriter = writer; _workDirectory = options.WorkDirectory; if (_workDirectory == null) _workDirectory = Environment.CurrentDirectory; else if (!Directory.Exists(_workDirectory)) Directory.CreateDirectory(_workDirectory); _resultService = _engine.Services.GetService<IResultService>(); }
public ConsoleRunner(ITestEngine engine, ConsoleOptions options, ExtendedTextWriter writer) { _engine = engine; _options = options; _outWriter = writer; _workDirectory = options.WorkDirectory; if (_workDirectory == null) _workDirectory = Environment.CurrentDirectory; else if (!Directory.Exists(_workDirectory)) Directory.CreateDirectory(_workDirectory); _resultService = _engine.Services.GetService<IResultService>(); _filterService = _engine.Services.GetService<ITestFilterService>(); _extensionService = _engine.Services.GetService<IExtensionService>(); // Enable TeamCityEventListener immediately, before the console is redirected _extensionService.EnableExtension("NUnit.Engine.Listeners.TeamCityEventListener", _options.TeamCity); }
public CommentsController(IResultService comments) { this.comments = comments; }
public ResultOrganizer(IResultService resultService) { this.resultService = resultService; }
public ResultReport(IResultService resultService, IBudgetService budgetService, IAccountInfoService accountInfoService) { _resultService = resultService; _accountInfoService = accountInfoService; _budgetService = budgetService; }
public PdfGenerator(IResultService resultService, IBudgetService budgetService, IAccountInfoService accountInfoService) { _resultService = resultService; _accountInfoService = accountInfoService; _budgetService = budgetService; }