public TestingController( ITestingService testingService, RelationalDbContext context, IHttpContextAccessor accessor, ILogger <TestingController> logger) { _testingService = testingService; _context = context; _accessor = accessor; _logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="ViewModelViewsService" /> class. /// </summary> /// <param name="codeSnippetFactory">The code snippet factory.</param> /// <param name="settingsService">The settings service.</param> /// <param name="testingServiceFactory">The testing service factory.</param> public ViewModelViewsService( ICodeSnippetFactory codeSnippetFactory, ISettingsService settingsService, ITestingServiceFactory testingServiceFactory) { TraceService.WriteLine("ViewModelViewsService::Constructor"); this.codeSnippetFactory = codeSnippetFactory; this.settingsService = settingsService; this.testingService = testingServiceFactory.GetTestingService(); }
public TestPassingController( ITestService testService, ITestingService testingService, IAuthenticationManager authManager, IMapper mapper) { _testService = testService; _testingService = testingService; _authManager = authManager; _mapper = mapper; }
public UploadsController( ITestingService testingService, RelationalDbContext context, IAccessService <Upload> accessService, ICodeManagmentService uploadDataRepository, UserManager <ApplicationUser> userManager, IRoleHelper roleHelper) : base(context, userManager) { _testingService = testingService; _accessService = accessService; _uploadDataRepository = uploadDataRepository; _roleHelper = roleHelper; }
public TestingForm(IQuestionService questionService) { InitializeComponent(); userAnswers = new Dictionary <int, int>(); testingService = new TestingService(); this.questionService = questionService; List <TestQuestion> questions = questionService.getQuestion(); if (isListNotNullAndHaveItems(questions)) { prepareForm(questions); } else { MessageBox.Show(Properties.Resources.FILE_NOT_FOUNT_OR_DAMAGED, Properties.Resources.ERROR); this.Close(); } }
private void HandlePluginsLoaded(object sender, System.EventArgs e) { try { // Connect to the testing service and notify that server is ready. NetTcpBinding binding = new NetTcpBinding(); EndpointAddress ep = new EndpointAddress(Testing.ServiceURI); ITestingService channel = ChannelFactory <ITestingService> .CreateChannel(binding, ep); channel.NotifyServerReady(); } catch (EndpointNotFoundException) { // No endpoint means that we are not being run within a test on Windows. This is normal :-) } catch (SocketException) { // Socket exception means that we are not being run within a test on Linux. This is normal :-) } }
public PanelController( IUserManagementService userManagementService, IUserDataService userDataService, ITestService testService, IQuestionService questionService, IAnswerService answerService, ITestingService testingService, ITestResultService testResultService, IAuthenticationManager authManager, IMapper mapper) { _userManagementService = userManagementService; _userDataService = userDataService; _testService = testService; _questionService = questionService; _answerService = answerService; _testingService = testingService; _testResultService = testResultService; _authManager = authManager; _mapper = mapper; pageSize = Defaults.GetPageSize(); }
/// <summary> /// Initializes a new instance of the <see cref="PluginsService" /> class. /// </summary> /// <param name="pluginService">The plugin service.</param> /// <param name="settingsService">The settings service.</param> /// <param name="nugetService">The nuget service.</param> /// <param name="codeSnippetFactory">The code snippet factory.</param> /// <param name="testingServiceFactory">The testing service factory.</param> public PluginsService( IPluginService pluginService, ISettingsService settingsService, INugetService nugetService, ICodeSnippetFactory codeSnippetFactory, ITestingServiceFactory testingServiceFactory) { TraceService.WriteLine("PluginsService::Constructor"); this.pluginService = pluginService; this.settingsService = settingsService; this.nugetService = nugetService; this.codeSnippetFactory = codeSnippetFactory; this.testingService = testingServiceFactory.GetTestingService(); this.codeSnippetService = codeSnippetFactory.GetCodeSnippetService(); }
public TestingController(ITestingService blogService) { _testingService = blogService; }
public TestingController(ITestingService TestService) { _TestingService = TestService; }
public HomeController(ITestingService testingService) { this.testingService = testingService; }
public void SetUpFixture() { this.mlcProxyMock = new Mock<IMlcProxy>(MockBehavior.Loose); this.testingService = new TestingService(this.mlcProxyMock.Object); }
public TestingServiceController(ITestingService testingService) { _testingService = testingService; }
public void SetUpFixture() { this.mlcProxyMock = new Mock <IMlcProxy>(MockBehavior.Loose); this.testingService = new TestingService(this.mlcProxyMock.Object); }
public TestHandler(ITestingService testingService, ILogger logger) { this.testingService = testingService; this.logger = logger; }
public TestController() { _services = new TestingService(); }