예제 #1
0
 public UserService(IUnitOfWork uow, ITestResultRepository repo, IUserRepository userRepo, ITestService tService)
 {
     this.uow = uow;
     this.trRepo = repo;
     this.uRepo = userRepo;
     this.testService = tService;
 }
예제 #2
0
 public TestController(ITestService service, IUserService uService, IQuestionService qService, IAnswerService aService)
 {
     this.testService = service;
     this.userService = uService;
     this.questionService = qService;
     this.answerService = aService;
 }
예제 #3
0
 public SampleReceivingController(ISampleReceivingService SampleReceivingService, IUOMService UOMService, IProductService ProductService, ITestService TestService)
 {
     this.SampleReceivingService = SampleReceivingService;
     this.UOMService = UOMService;
     this.ProductService = ProductService;
     this.TestService = TestService;
 }
		/// <summary>
		/// create a new TestServiceWcfProxy
		/// </summary>
		public TestServiceWcfProxy()
		{
			if (_channel != null) return;
			_httpFactory =
			  new ChannelFactory<ITestService>("TestServiceEndpoint");
			_channel = _httpFactory.CreateChannel();
		}
예제 #5
0
 //todo  : add Authorize parameters
 public TestController(ITestService tService, ICourseService cService, IProfileService pService, IJournalService jService)
 {
     _testService = tService;
     _courseService = cService;
     _profileService = pService;
     _journalService = jService;
 }
 public HomeController(ITestService test)
 {
     if (test.Add(1, 1) != 2)
     {
         throw new Exception();
     }
 }
예제 #7
0
 public PreviewMode(IHtmlView html, ITestService service, Test test)
     : base(Mode.Preview)
 {
     _html = html;
     _service = service;
     _test = test;
 }
예제 #8
0
 public TestController(ITestService testService)
 {
     if (testService == null)
     {
         throw new ArgumentNullException("ITestService");
     }
     _service = testService;
 }
        public HomeController(IUnitOfWork unitOfWork, ITestRepository testRepository, ITodoRepository repository, ITestService testService)
        {
            _repository = repository;
            _testService = testService;
            _testRepository = testRepository;
            _unitOfWork = unitOfWork;

        }
예제 #10
0
 public virtual void ObjectWithSimpleToString() {
     rep = GetTestService("Object2s");
     obj = rep.GetAction("New Instance").InvokeReturnObject();
     prop1 = obj.GetPropertyByName("Prop1");
     prop1.SetValue("Bar");
     obj.AssertTitleEquals("Bar");
     obj.Save();
     obj.AssertTitleEquals("Bar");
 }
예제 #11
0
 public virtual void TitleMethod() {
     rep = GetTestService("Object4s");
     obj = rep.GetAction("New Instance").InvokeReturnObject();
     obj.AssertTitleEquals("Untitled Object4");
     prop1 = obj.GetPropertyByName("Prop1");
     prop1.SetValue("Foo");
     obj.AssertTitleEquals("Foo");
     obj.Save();
     obj.AssertTitleEquals("Foo");
 }
예제 #12
0
 public virtual void ObjectWithTitleAttributeOnString() {
     rep = GetTestService("Object1s");
     obj = rep.GetAction("New Instance").InvokeReturnObject();
     obj.AssertTitleEquals("Untitled Object1");
     prop1 = obj.GetPropertyByName("Prop1");
     prop1.SetValue("Foo");
     obj.AssertTitleEquals("Foo");
     obj.Save();
     obj.AssertTitleEquals("Foo");
 }
		public TestExecutionManager()
		{
			this.buildService = SD.BuildService;
			this.taskService = new UnitTestTaskService();
			this.saveAllFilesCommand = new UnitTestSaveAllFilesCommand();
			this.testService = SD.GetRequiredService<ITestService>();
			this.workbench = SD.Workbench;
			this.statusBarService = SD.StatusBar;
			this.mainThread = SD.MainThread;
			this.buildOptions = new UnitTestBuildOptions();
		}
예제 #14
0
 public virtual void TitleMethodTakesPrecedenceOverToString() {
     rep = GetTestService("Object5s");
     obj = rep.GetAction("New Instance").InvokeReturnObject();
     StringAssert.Equals("Bar", obj.GetDomainObject().ToString());
     obj.AssertTitleEquals("Untitled Object5");
     ITestProperty prop1 = obj.GetPropertyByName("Prop1");
     prop1.SetValue("Foo");
     obj.AssertTitleEquals("Foo");
     obj.Save();
     obj.AssertTitleEquals("Foo");
 }
예제 #15
0
		public TestSolution(ITestService testService, IResourceService resourceService)
		{
			if (testService == null)
				throw new ArgumentNullException("testService");
			if (resourceService == null)
				throw new ArgumentNullException("resourceService");
			this.testService = testService;
			this.resourceService = resourceService;
			SD.ProjectService.AllProjects.CollectionChanged += OnProjectsCollectionChanged;
			SD.ParserService.LoadSolutionProjectsThread.Finished += SD_ParserService_LoadSolutionProjectsThread_Finished;
			foreach (var project in SD.ProjectService.AllProjects) {
				AddProject(project);
			}
			SD_ParserService_LoadSolutionProjectsThread_Finished(null, null);
		}
예제 #16
0
		public UnitTestsPad(ITestService testService)
		{
			this.testService = testService;
			
			panel = new DockPanel();
			treeView = new TestTreeView(); // treeView must be created first because it's used by CreateToolBar

			toolBar = CreateToolBar("/SharpDevelop/Pads/UnitTestsPad/Toolbar");
			panel.Children.Add(toolBar);
			DockPanel.SetDock(toolBar, Dock.Top);
			
			panel.Children.Add(treeView);
			
			treeView.ContextMenu = CreateContextMenu("/SharpDevelop/Pads/UnitTestsPad/ContextMenu");
			
			testService.OpenSolutionChanged += testService_OpenSolutionChanged;
			testService_OpenSolutionChanged(null, null);
		}
예제 #17
0
 public TestController()
 {
     this.testService = new TestService();
     this.groupService = new GroupService();
 }
 public TestController(ITestService testService)
 {
     this.testService = testService;
 }
 public  SearchController(ITestService testService)
 {
     this.testService = testService;
 }
예제 #20
0
 public CustomParameterPolicyWithOnlyServiceArguments(ITestService testService1, ITestService testService2)
 {
     TestService1 = testService1;
     TestService2 = testService2;
 }
예제 #21
0
 public CustomParameterPolicyWithAmbigiousMultpleCtors(ITestService testService, int count)
 {
     TestService = testService;
     Count       = count;
 }
예제 #22
0
          public DefaultController(ITestService TestService)
        {

            this.TestService = TestService;
        }
 public ManualFunction(ITestService serviceImpl)
 {
     _testService = serviceImpl;
 }
예제 #24
0
 public TestController(ITestService authenticationService)
 {
     _authenticationService = authenticationService;
 }
예제 #25
0
 public void StopService()
 {
     _service.Stop();
     _client = null;
 }
예제 #26
0
 public TestModelBinder(ITestService service)
 {
     Service = service;
 }
예제 #27
0
 public TestController(ITestService service)
 {
     _service = service;
 }
예제 #28
0
 public ValuesController(ITestService service)
 {
     this._service = service;
 }
예제 #29
0
 public TestController(ITestService customerservice, IMapper mapper)
 {
     this._testservice = customerservice;
     this._mapper      = mapper;
 }
예제 #30
0
 public WeatherForecastController(ILogger <WeatherForecastController> logger, ITestService testService)
 {
     _logger      = logger;
     _testService = testService;
 }
 public EnterMobileModel(IMobileService mobileService, ITestService testService)
 {
     _mobileService = mobileService;
     var s = testService.GetTitle();
     Debug.WriteLine(s);
 }
예제 #32
0
 public TestOtherService(ITestService dependantService)
 {
     this.dependantService = dependantService;
 }
예제 #33
0
		public TestableCondition()
		{
			this.testService = SD.GetRequiredService<ITestService>();
		}
예제 #34
0
 public TestsController(IUnitOfWork iunit, ITestService testService, ITestMasterService testMasterService)
 {
     this.testService       = testService;
     this.iUnitOfWork       = iunit;
     this.testMasterService = testMasterService;
 }
예제 #35
0
 public HomeController(IAltBaslikService altBaslikService, IDersService dersService, ISinifService sinifService, ISoruService soruService, ITestService testService, ITestSoruService testSoruService, IUniteService uniteService, ITestKullaniciService testKullaniciService, IAppUserService appUserService)
 {
     _altBaslikService     = altBaslikService;
     _dersService          = dersService;
     _sinifService         = sinifService;
     _soruService          = soruService;
     _testService          = testService;
     _testSoruService      = testSoruService;
     _uniteService         = uniteService;
     _testKullaniciService = testKullaniciService;
     _appUserService       = appUserService;
 }
예제 #36
0
 public DependentService(ITestService dependency)
 {
     this.dependency = dependency;
 }
예제 #37
0
 public ValuesController(ICachingTest cachingTest, ITestService testService)
 {
     _cachingTest = cachingTest;
     _testService = testService;
 }
예제 #38
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="testService">test的服务接口实现类</param>
 public TestController(ITestService testService)
 {
     this._testService = testService;
 }
예제 #39
0
 public CustomParameterPolicyWithMultipleArguments(int first, ITestService testService1, int second, ITestService testService2)
 {
     First        = first;
     TestService1 = testService1;
     Second       = second;
     TestService2 = testService2;
 }
예제 #40
0
		public FirstViewModel(ITestService testService)
		{
			_testService = testService;

			this.DoWorkCommand = new MvxCommand(ExecuteDoWork, CanDoWork);
		}	
예제 #41
0
 public CustomParameterPolicyWithArguments(ITestService testService, int count)
 {
     TestService = testService;
     Count       = count;
 }
예제 #42
0
        public override void Run()
        {
            ITestService testService = SD.GetRequiredService <ITestService>();

            testService.CancelRunningTests();
        }
예제 #43
0
 public HomeController(ILogger <HomeController> logger, ITestService testService)
 {
     _logger      = logger;
     _testService = testService;
 }
예제 #44
0
 public TestController(ITestService service)
 {
     this.service = service;
 }
예제 #45
0
 public TheatreBookingHub(ITestService service)
 {
     _service = service;
 }
예제 #46
0
 public HomeController(ITestService service) : base(service)
 {
 }
예제 #47
0
 public TestController(ITestService testService, IGroupService groupService)
 {
     this.testService = testService;
     this.groupService = groupService;
 }
예제 #48
0
 public RegexInlineRouteConstraintWithService(string regexPattern, ITestService testService)
     : base(regexPattern)
 {
     TestService = testService;
 }
예제 #49
0
파일: TestGrpc.cs 프로젝트: rootusr/grpc
 // creates service definition that can be registered with a server
 public static ServerServiceDefinition BindService(ITestService serviceImpl)
 {
     return ServerServiceDefinition.CreateBuilder(__ServiceName)
       .AddMethod(__Method_EmptyCall, serviceImpl.EmptyCall)
       .AddMethod(__Method_UnaryCall, serviceImpl.UnaryCall)
       .AddMethod(__Method_StreamingOutputCall, serviceImpl.StreamingOutputCall)
       .AddMethod(__Method_StreamingInputCall, serviceImpl.StreamingInputCall)
       .AddMethod(__Method_FullDuplexCall, serviceImpl.FullDuplexCall)
       .AddMethod(__Method_HalfDuplexCall, serviceImpl.HalfDuplexCall).Build();
 }
예제 #50
0
 public TestController(ITestService testService)
 {
     _testService = testService;
 }
예제 #51
0
		public TestableCondition(ITestService testService)
		{
			this.testService = testService;
		}
예제 #52
0
 public TransactionController(ITestService testService)
 {
     _testService = testService;
 }
예제 #53
0
            public virtual void TitleAttributeTakesPrecedenceOverTitleMethod() {
                rep = GetTestService("Object6s");
                obj = rep.GetAction("New Instance").InvokeReturnObject();
                var dom = (Object6) obj.GetDomainObject();
                StringAssert.Equals("Bar", dom.ToString());
                StringAssert.Equals("Hex", dom.Title());
                obj.AssertTitleEquals("Untitled Object6");
                prop1 = obj.GetPropertyByName("Prop1");
                prop1.SetValue("Foo");
                obj.AssertTitleEquals("Foo");
                obj.Save();
                obj.AssertTitleEquals("Foo");

           
            }
예제 #54
0
 public HomeController(ITestService testService)
 {
     this._testService = testService;
 }
예제 #55
0
    private void FillPlatformTests(int projectId, int platformId, int activityId, int testID)
    {
        ITestService service = null;

        try
        {
            // Create the service.
            service            = AppService.Create <ITestService>();
            service.AppManager = this.AppManager;

            // Retrieve locations of the project.
            // TODO: Use overload method.
            List <Test>        tests  = service.RetrieveByProject(projectId);
            IEnumerable <Test> result = from test in tests
                                        where test.CustomData["PlatformId"].ToString() == platformId.ToString() && test.CustomData["IsActive"].ToString() == "True"
                                        select test;


            List <Test> platformsTestList = result.ToList <Test>();
            if (activityId != 0)
            {
                // When editing the activity.
                // If current activity location is removed from project location list then
                // we need to show that location also. Otherwise location will not populate in the drop down list.
                // Check whether current activity location is exists in the list.
                Test platformslst = platformsTestList.Where(item => item.Id == testID).FirstOrDefault();
                // If it is not found then add to list.
                if (platformslst == null)
                {
                    platformsTestList.Add(tests.Where(item => item.Id == testID).FirstOrDefault());
                    platformsTestList.Remove(tests.Where(item => item.Id == 0).FirstOrDefault());
                }
            }


            // Bind.
            this.ddlTestList.Items.Clear();
            this.ddlTestList.DataTextField  = "Name";
            this.ddlTestList.DataValueField = "Id";
            this.ddlTestList.DataSource     = platformsTestList;
            this.ddlTestList.DataBind();

            // Add default item.
            this.ddlTestList.Items.Insert(0, new ListItem("-- Select --", "0"));


            if (activityId == 0)
            {
                // Select first item as default.
                if (this.ddlTestList.Items.Count > 0)
                {
                    this.ddlTestList.SelectedIndex = 0;
                }
                if (this.ddlTestList.Items.Count == 2)
                {
                    this.ddlTestList.SelectedIndex = 1;
                }
            }
            else
            {
                ddlTestList.Value = testID.ToString();
            }
        }
        catch { throw; }
        finally
        {
            if (service != null)
            {
                service.Dispose();
            }
        }
    }
예제 #56
0
 public TestViewModel(ITestService testService) //تزريق وابستگي در سازنده كلاس
 {
     _testService = testService;
 }
예제 #57
0
 public AdminController(ITestService tService, IAnswerService aService, IQuestionService qService)
 {
     testService = tService;
     answerService = aService;
     questionService = qService;
 }
예제 #58
0
 public HomeController(ITestService testService, IUserService userservice, IStoreServices storeServices) : base(storeServices, userservice)
 {
     this.testService = testService;
 }
예제 #59
0
 public SOPController(ISOPService SOPService, ITestService TestService)
 {
     this.SOPService = SOPService;
     this.TestService = TestService;
 }
예제 #60
0
 public TestServiceConsumer(IIndex <string, ITestService> testServices)
 {
     testService = testServices["service"];
 }