Exemplo n.º 1
0
 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();
        }
Exemplo n.º 3
0
 public TestPassingController(
     ITestService testService,
     ITestingService testingService,
     IAuthenticationManager authManager,
     IMapper mapper)
 {
     _testService    = testService;
     _testingService = testingService;
     _authManager    = authManager;
     _mapper         = mapper;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
        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();
            }
        }
Exemplo n.º 6
0
        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 :-)
            }
        }
Exemplo n.º 7
0
        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();
        }
Exemplo n.º 9
0
 public TestingController(ITestingService blogService)
 {
     _testingService = blogService;
 }
Exemplo n.º 10
0
 public TestingController(ITestingService TestService)
 {
     _TestingService = TestService;
 }
 public HomeController(ITestingService testingService)
 {
     this.testingService = testingService;
 }
Exemplo n.º 12
0
 public void SetUpFixture()
 {
     this.mlcProxyMock = new Mock<IMlcProxy>(MockBehavior.Loose);
     this.testingService = new TestingService(this.mlcProxyMock.Object);
 }
Exemplo n.º 13
0
 public TestingServiceController(ITestingService testingService)
 {
     _testingService = testingService;
 }
 public HomeController(ITestingService testingService)
 {
     this.testingService = testingService;
 }
Exemplo n.º 15
0
 public void SetUpFixture()
 {
     this.mlcProxyMock   = new Mock <IMlcProxy>(MockBehavior.Loose);
     this.testingService = new TestingService(this.mlcProxyMock.Object);
 }
Exemplo n.º 16
0
 public TestHandler(ITestingService testingService, ILogger logger)
 {
     this.testingService = testingService;
     this.logger         = logger;
 }
Exemplo n.º 17
0
 public TestController()
 {
     _services = new TestingService();
 }