public void setUp()
 {
     //1. SETUP DEPENDENCIES
     _iCustomService = new CustomService();
     _iCustomService.customServiceLoadedSignal = new CustomServiceLoadedSignal();             //injected, in production
     _iCustomService.customServiceLoadedSignal.AddListener(onCustomServiceLoadedSignal);
 }
Пример #2
0
 public DataService(IUnitOfWork db, ICustomService custom, IRssService rss, ISearchService search)
 {
     _db     = db;
     _custom = custom;
     _rss    = rss;
     _search = search;
 }
		public void setUp()
		{
			//1. SETUP DEPENDENCIES
			_iCustomService = new CustomService ();
			_iCustomService.customServiceLoadedSignal = new CustomServiceLoadedSignal();


		}
		public void setUp()
		{
			//1. SETUP DEPENDENCIES
			_iCustomService 	= new CustomService();
			_iCustomService.customServiceLoadedSignal = new CustomServiceLoadedSignal(); //injected, in production
			_iCustomService.customServiceLoadedSignal.AddListener (onCustomServiceLoadedSignal);
			
		}
Пример #5
0
 public ValuesController(
     AppDbContext context,
     ICustomService service,
     IIgnoreService lgnoreService)
 {
     _context       = context;
     _service       = service;
     _lgnoreService = lgnoreService;
 }
        public OutStandingDocsController()
        {
            //bizrule = new DQQueBiz();
            _dqQueService     = new CustomService();
            _exportManager    = new ExportManager();
            _messagingService = new MessagingService();

            _permissionservice = new PermissionsService();
        }
        public IActionResult Run(
            [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req,
            ILogger log,
            ICustomService _svc)
        {
            string message = _svc.GetMessage();

            return(new OkObjectResult(message));
        }
Пример #8
0
 public BlogController(IUnitOfWork db, ISearchService search, IRssService rss, ICustomService custom, ILogger <BlogController> logger)
 {
     _db     = db;
     _search = search;
     _rss    = rss;
     _custom = custom;
     _logger = logger;
     _theme  = string.Format(_themePattern, ApplicationSettings.BlogTheme);
 }
Пример #9
0
 public void setUp()
 {
     //1. SETUP DEPENDENCIES
     _iCustomService = new CustomService();
     _iCustomService.customServiceLoadedSignal = new CustomServiceLoadedSignal();             //injected, in production
     //
     _iCustomModel = new CustomModel();
     _iCustomModel.gameListUpdatedSignal = new GameListUpdatedSignal();             //injected, in production
     _iCustomModel.gameListUpdatedSignal.AddListener(onCustomGameListUpdated);
 }
Пример #10
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ICustomService customService)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.Run(async(context) =>
            {
                await context.Response.WriteAsync(customService.GetOption1());
            });
        }
		public void setUp()
		{
			//1. SETUP DEPENDENCIES
			_iCustomService 	= new CustomService();
			_iCustomService.customServiceLoadedSignal = new CustomServiceLoadedSignal(); //injected, in production
			//
			_iCustomModel 		= new CustomModel();
			_iCustomModel.gameListUpdatedSignal = new GameListUpdatedSignal(); //injected, in production
			_iCustomModel.gameListUpdatedSignal.AddListener (onCustomGameListUpdated);


			
		}
Пример #12
0
 public RootServiceDependency(
     Lazy <ILazyService> lazyService,
     Func <IFactoryService> factoryService,
     ConcreteService concreteService,
     ICustomService customService,
     IGenericService <object> genericService)
 {
     _lazyService     = lazyService;
     _factoryService  = factoryService;
     _concreteService = concreteService;
     _customService   = customService;
     _genericService  = genericService;
 }
Пример #13
0
 public InMemoryResturantData(ILogger <InMemoryResturantData> logger, ICustomService service)
 {
     this.service = service;
     service.DoNothing();
     this.logger = logger;
     resturants  = new List <Resturant>()
     {
         new Resturant {
             Id = 1, Cuisine = CuisineType.Indian, Location = "Bnei Braq", Name = "Tsipori"
         },
         new Resturant {
             Id = 2, Cuisine = CuisineType.Italian, Location = "Ramat Gan", Name = "Pitzale"
         },
         new Resturant {
             Id = 3, Cuisine = CuisineType.None, Location = "Airport City", Name = "Neeman"
         }
     };
 }
Пример #14
0
 public ReportsController(ILocalizationService localizationService,
     IWorkContext workContext, IDateTimeHelper dateTimeHelper, IWebHelper webHelper,
     ICountryService countryService, IStateProvinceService stateProvinceService,
     IPriceFormatter priceFormatter, IAffiliateService affiliateService,
     ICustomerService customerService, IOrderService orderService,
     IPermissionService permissionService, ICustomService customService, IExportManager exportManager)
 {
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._dateTimeHelper = dateTimeHelper;
     this._webHelper = webHelper;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._priceFormatter = priceFormatter;
     this._affiliateService = affiliateService;
     this._customerService = customerService;
     this._orderService = orderService;
     this._permissionService = permissionService;
     this._customService = customService;
     this._exportManager = exportManager;
 }
Пример #15
0
        public async Task <string> Process(string message)
        {
            ICustomService customService = null;

            if (new FeatureProvider(_featureEvaluators).Evaluate("Features:NLUEnabled") == "true")
            {
                //TODO: Talk to NLU Service to extract Intent & Entity
            }

            switch (message.Split('/')[0])
            {
            case Constants.CorporateBullShitBuzzWord:
                customService = _customServices.Where(cs => cs.CanExecute(Constants.CorporateBullShitBuzzWord)).First();
                break;

            default:
                customService = _customServices.Where(cs => cs.CanExecute(Constants.CopyCat)).First();
                break;
            }

            return(await customService.Execute(message));
        }
		public void tearDown()
		{
			_iCustomService = null;
			_iCustomModel 	= null;
		}
Пример #17
0
 public HomeController(ICustomService service)
 {
     _service = service;
 }
Пример #18
0
 public CustomVisionController(ICustomService customService)
 {
     _customService = customService;
 }
Пример #19
0
 public CustomModelBinder(ICustomService customService) => this.customService = customService;
        public CustomController(ICustomService greetingService)

        {
            _greetingService = greetingService;
        }
 public BController(ICustomServiceSelector customServiceSelector, IEnumerable <ICustomService> customServices)
 {
     this._customService = customServiceSelector?.GetCustomService(this.GetType(), customServices);
 }
 public void tearDown()
 {
     _iCustomService = null;
 }
Пример #23
0
 public CustomerController()
 {
     _customService = new CustomServiceImpl();
 }
 public StepWithMultipleDependencies(ICustomService customService, ICustomServiceB customServiceB)
 {
     CustomService  = customService;
     CustomServiceB = customServiceB;
 }
Пример #25
0
 public ValueController(ICustomService service)
 {
     _service = service;
 }
 public CustomController(ICustomService customService)
 {
     _customTestService = customService;
 }
Пример #27
0
 public CustomController(ICustomService custom, IVacancyService vacancy)
 {
     customService  = custom;
     vacancyService = vacancy;
 }
 public CustomServices(ICustomService service)
 {
     _service = service;
 }
 public StepWithSingleDependency(ICustomService customService)
 {
     CustomService = customService;
 }
Пример #30
0
 public CustomController(ILogger <CustomController> logger, ICustomService service)
 {
     _logger  = logger;
     _service = service;
 }
Пример #31
0
 public HomeController()
 {
     _customService = new CustomService();
 }
Пример #32
0
 public HomeController(ICustomService customService) => _customService = customService;
 public void setUp()
 {
     //1. SETUP DEPENDENCIES
     _iCustomService = new CustomService();
     _iCustomService.customServiceLoadedSignal = new CustomServiceLoadedSignal();
 }
Пример #34
0
 public CustomServiceClient(ICustomService service)
 {
     _service = service;
 }
Пример #35
0
 public Index(ICustomService service)
 {
     _message = service.GetMessage();
 }
Пример #36
0
 public CustomController(ICustomService customService)
 {
     _customService = customService;
 }