Пример #1
0
 public CheckController(IUserInfoManager userInfoManager, DBContext context, ILocationService locationService, ICheckService checkService)
 {
     _context         = context;
     _userInfoManager = userInfoManager;
     _locationService = locationService;
     _checkService    = checkService;
 }
Пример #2
0
        public void Setup()
        {
            _provider         = TestUtility.InitDI();
            _settingsService  = Substitute.For <SettingsService>((IServiceProvider)null);
            _stateService     = Substitute.For <StateService>(_provider, null);
            _goodCheckService = Substitute.For <ICheckService>();
            _badCheckService1 = Substitute.For <ICheckService>();
            _badCheckService2 = Substitute.For <ICheckService>();

            _service = new EndpointProcessService(_settingsService, _stateService, new List <ICheckService> {
                _badCheckService1, _goodCheckService, _badCheckService2
            }, _provider);

            _goodCheckService.CanHandle(Arg.Any <Endpoint>()).Returns(true);
            _badCheckService1.CanHandle(Arg.Any <Endpoint>()).Returns(false);
            _badCheckService2.CanHandle(Arg.Any <Endpoint>()).Returns(false);

            _validEndpoint             = TestUtility.CreateHttpEndpoint("A", true, 0, "http://asdf");
            _validEndpoint.LastUpdated = DateTimeOffset.UtcNow;
            using (var scope = _provider.CreateScope())
                using (var dbContext = scope.ServiceProvider.GetRequiredService <ApplicationDbContext>())
                {
                    dbContext.Endpoints.Add(_validEndpoint);
                    dbContext.SaveChanges();
                }
        }
Пример #3
0
 public ApiController(DBContext context, ICheckService checkService, IInfectionService infectionManager, ILocationService locationService)
 {
     _context          = context;
     _checkService     = checkService;
     _infectionManager = infectionManager;
     _locationService  = locationService;
 }
Пример #4
0
 public static ICheckService GetInstance()
 {
     if (INSTANCE == null)
     {
         INSTANCE = new CheckServiceImpl();
     }
     return(INSTANCE);
 }
Пример #5
0
 public NotificationRunnerService(
     ICheckService checkService,
     ICheckNotificationService checkNotificationService,
     INotificationSender sender)
 {
     _checkService             = checkService;
     _checkNotificationService = checkNotificationService;
     _sender = sender;
 }
Пример #6
0
 public StatusController(
     ICheckBatchService checkBatchService,
     ICheckService checkService,
     ICheckResultService checkResultService)
 {
     _checkBatchService  = checkBatchService;
     _checkService       = checkService;
     _checkResultService = checkResultService;
 }
Пример #7
0
 public BankController(IConfiguration configuration,
                       IWalletService walletService,
                       ICheckService checkService,
                       ILogger <BankController> logger)
 {
     _config        = configuration;
     _logger        = logger;
     _walletService = walletService;
     _checkService  = checkService;
 }
Пример #8
0
        public MainWindow()
        {
            InitializeComponent();

            this.excelService    = ExcelServiceImpl.GetInstance();
            this.databaseService = DatabaseServiceImpl.GetInstance();
            this.checkService    = CheckServiceImpl.GetInstance();

            this.listBox_log.ItemsSource = this.logList;
        }
        public static CheckController GetInitialisedCheckController(ICheckService checkService)
        {
            var controller = new CheckController(checkService)
            {
                Request = new HttpRequestMessage { RequestUri = new Uri(Url) },
                Configuration = new HttpConfiguration()
            };

            controller.Configuration.MapHttpAttributeRoutes();
            controller.Configuration.EnsureInitialized();

            return controller;
        }
Пример #10
0
 public MovieController(IMovieService movieService, ICinemaLocationService cinemaLocationService, IPDFService pdfService, ITicketService ticketService, IWorkerService workerService, ITicketCheckService ticketcheckService, ICheckService checkService, IShowingService showingService, UserManager <Worker> userManager, SignInManager <Worker> signInManager)
 {
     this.workerService         = workerService;
     this.cinemaLocationService = cinemaLocationService;
     this.movieService          = movieService;
     this.pdfService            = pdfService;
     this.ticketcheckService    = ticketcheckService;
     this.checkService          = checkService;
     this.ticketService         = ticketService;
     this.showingService        = showingService;
     this.userManager           = userManager;
     this.signInManager         = signInManager;
 }
Пример #11
0
 public AdminTablesController(CinemaContext context, ITicketCheckService ticketCheckService, IFoodcourtCheckProductService foodcourtCheckProductService, IFoodcourtCheckService foodcourtCheckService, ICheckService checkService, ITicketService ticketService, ICinemaLocationService cinemaLocationService, IFoodProductsService foodProductsService, ITechnologyService technologyService, ICityService cityService, IFoodAmountService foodAmountService, ICinemaHallService cinemaHallService, IDirectorService directorService, IWorkerService workerService, ICountryOfOriginService countryOfOriginService, IMovieService movieService, IGenreService genreService, IShowingService showingService, UserManager <Worker> userManager, SignInManager <Worker> signInManager)
 {
     this.foodProductsService          = foodProductsService;
     this.directorService              = directorService;
     this.technologyService            = technologyService;
     this.cityService                  = cityService;
     this.foodAmountService            = foodAmountService;
     this.cinemaHallService            = cinemaHallService;
     this.context                      = context;
     this.ticketCheckService           = ticketCheckService;
     this.foodcourtCheckProductService = foodcourtCheckProductService;
     this.foodcourtCheckService        = foodcourtCheckService;
     this.checkService                 = checkService;
     this.ticketService                = ticketService;
     this.cinemaLocationService        = cinemaLocationService;
     this.countryOfOriginService       = countryOfOriginService;
     this.movieService                 = movieService;
     this.workerService                = workerService;
     this.genreService                 = genreService;
     this.showingService               = showingService;
     this.userManager                  = userManager;
     this.signInManager                = signInManager;
 }
Пример #12
0
 public CheckController(ILogger <CheckController> logger, IOptions <AppConfig> appConfig, ICheckService checkService)
 {
     _logger       = logger;
     _appConfig    = appConfig.Value;
     _checkService = checkService;
 }
Пример #13
0
 public GamerManager(ICheckService govermentCheck)
 {
     _govermentCheck = govermentCheck;
 }
Пример #14
0
 public PreReqValidation(ICheckService checkService)
 {
     _checkService = checkService;
 }
Пример #15
0
 public CheckController(ICheckService checkService, ILogger <CheckController> logger)
 {
     _checkService = checkService;
     _logger       = logger;
 }
Пример #16
0
 public UserValidationService(ICheckService checkService)
 {
     _checkService = checkService;
 }
Пример #17
0
 public CheckController(ICheckService service)
 {
     _service = service;
 }
Пример #18
0
 public AuthManager(ICheckService checkService)
 {
     _checkService = checkService;
 }
Пример #19
0
 public HomeController(IAccountService accountService, ICheckService checkService)
 {
     this.accountService = accountService;
     this.checkService   = checkService;
 }
Пример #20
0
 public PlayerManager(ICheckService checkService)
 {
     _checkService = checkService;
 }
Пример #21
0
        public CheckController(ICheckService checkService)
        {
            Check.If(checkService).IsNotNull();

            _checkService = checkService;
        }
Пример #22
0
 public StarbucksCustomers(ICheckService customerCheckService)
 {
     _iCheckService = customerCheckService;
 }
Пример #23
0
 public GamerManager(ICheckService checkService)
 {
     _checkService = checkService;
 }
Пример #24
0
 public NeroCustomers(ICheckService customerCheckService)
 {
     _iCheckService = customerCheckService;
 }
 public PurchasesController(IPurchaseService purchaseService, ICheckService checkService)
 {
     _purchaseService = purchaseService;
     _checkService    = checkService;
 }
Пример #26
0
 public CheckController(ICheckService checkService)
 {
     this.checkService = checkService;
 }
Пример #27
0
 public void Setup()
 {
     _service = new CheckService();
 }
Пример #28
0
 public PlayerDal(ICheckService checkService)
 {
     _checkService = checkService;
 }
Пример #29
0
 public ChecksController(ICheckService checkService, ICheckResultService checkResultService)
 {
     _checkService       = checkService;
     _checkResultService = checkResultService;
 }
 public PlayerManager(ICheckService playerCheckService)
 {
     _iCheckService = playerCheckService;
 }
Пример #31
0
 public CheckRepo(IUnityContainer uc, ICheckService service)
 {
     _uc      = uc;
     _service = service;
 }
Пример #32
0
 public CheckController(ICheckService _checkService, IMapper _mapper)
 {
     checkService = _checkService;
     mapper       = _mapper;
 }