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;
 }