public UserService(IUnitOfWork uow, ITestResultRepository repo, IUserRepository userRepo, ITestService tService) { this.uow = uow; this.trRepo = repo; this.uRepo = userRepo; this.testService = tService; }
public TestController(ITestService service, IUserService uService, IQuestionService qService, IAnswerService aService) { this.testService = service; this.userService = uService; this.questionService = qService; this.answerService = aService; }
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(); }
//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(); } }
public PreviewMode(IHtmlView html, ITestService service, Test test) : base(Mode.Preview) { _html = html; _service = service; _test = test; }
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; }
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"); }
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"); }
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(); }
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"); }
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); }
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); }
public TestController() { this.testService = new TestService(); this.groupService = new GroupService(); }
public TestController(ITestService testService) { this.testService = testService; }
public SearchController(ITestService testService) { this.testService = testService; }
public CustomParameterPolicyWithOnlyServiceArguments(ITestService testService1, ITestService testService2) { TestService1 = testService1; TestService2 = testService2; }
public CustomParameterPolicyWithAmbigiousMultpleCtors(ITestService testService, int count) { TestService = testService; Count = count; }
public DefaultController(ITestService TestService) { this.TestService = TestService; }
public ManualFunction(ITestService serviceImpl) { _testService = serviceImpl; }
public TestController(ITestService authenticationService) { _authenticationService = authenticationService; }
public void StopService() { _service.Stop(); _client = null; }
public TestModelBinder(ITestService service) { Service = service; }
public TestController(ITestService service) { _service = service; }
public ValuesController(ITestService service) { this._service = service; }
public TestController(ITestService customerservice, IMapper mapper) { this._testservice = customerservice; this._mapper = mapper; }
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); }
public TestOtherService(ITestService dependantService) { this.dependantService = dependantService; }
public TestableCondition() { this.testService = SD.GetRequiredService<ITestService>(); }
public TestsController(IUnitOfWork iunit, ITestService testService, ITestMasterService testMasterService) { this.testService = testService; this.iUnitOfWork = iunit; this.testMasterService = testMasterService; }
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; }
public DependentService(ITestService dependency) { this.dependency = dependency; }
public ValuesController(ICachingTest cachingTest, ITestService testService) { _cachingTest = cachingTest; _testService = testService; }
/// <summary> /// 构造函数 /// </summary> /// <param name="testService">test的服务接口实现类</param> public TestController(ITestService testService) { this._testService = testService; }
public CustomParameterPolicyWithMultipleArguments(int first, ITestService testService1, int second, ITestService testService2) { First = first; TestService1 = testService1; Second = second; TestService2 = testService2; }
public FirstViewModel(ITestService testService) { _testService = testService; this.DoWorkCommand = new MvxCommand(ExecuteDoWork, CanDoWork); }
public CustomParameterPolicyWithArguments(ITestService testService, int count) { TestService = testService; Count = count; }
public override void Run() { ITestService testService = SD.GetRequiredService <ITestService>(); testService.CancelRunningTests(); }
public HomeController(ILogger <HomeController> logger, ITestService testService) { _logger = logger; _testService = testService; }
public TestController(ITestService service) { this.service = service; }
public TheatreBookingHub(ITestService service) { _service = service; }
public HomeController(ITestService service) : base(service) { }
public TestController(ITestService testService, IGroupService groupService) { this.testService = testService; this.groupService = groupService; }
public RegexInlineRouteConstraintWithService(string regexPattern, ITestService testService) : base(regexPattern) { TestService = testService; }
// 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(); }
public TestController(ITestService testService) { _testService = testService; }
public TestableCondition(ITestService testService) { this.testService = testService; }
public TransactionController(ITestService testService) { _testService = testService; }
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"); }
public HomeController(ITestService testService) { this._testService = testService; }
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(); } } }
public TestViewModel(ITestService testService) //تزريق وابستگي در سازنده كلاس { _testService = testService; }
public AdminController(ITestService tService, IAnswerService aService, IQuestionService qService) { testService = tService; answerService = aService; questionService = qService; }
public HomeController(ITestService testService, IUserService userservice, IStoreServices storeServices) : base(storeServices, userservice) { this.testService = testService; }
public SOPController(ISOPService SOPService, ITestService TestService) { this.SOPService = SOPService; this.TestService = TestService; }
public TestServiceConsumer(IIndex <string, ITestService> testServices) { testService = testServices["service"]; }