Ejemplo n.º 1
0
 public CheckController(IUserInfoManager userInfoManager, DBContext context, ILocationService locationService, ICheckService checkService)
 {
     _context         = context;
     _userInfoManager = userInfoManager;
     _locationService = locationService;
     _checkService    = checkService;
 }
Ejemplo n.º 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();
                }
        }
Ejemplo n.º 3
0
 public ApiController(DBContext context, ICheckService checkService, IInfectionService infectionManager, ILocationService locationService)
 {
     _context          = context;
     _checkService     = checkService;
     _infectionManager = infectionManager;
     _locationService  = locationService;
 }
Ejemplo n.º 4
0
 public static ICheckService GetInstance()
 {
     if (INSTANCE == null)
     {
         INSTANCE = new CheckServiceImpl();
     }
     return(INSTANCE);
 }
Ejemplo n.º 5
0
 public NotificationRunnerService(
     ICheckService checkService,
     ICheckNotificationService checkNotificationService,
     INotificationSender sender)
 {
     _checkService             = checkService;
     _checkNotificationService = checkNotificationService;
     _sender = sender;
 }
Ejemplo n.º 6
0
 public StatusController(
     ICheckBatchService checkBatchService,
     ICheckService checkService,
     ICheckResultService checkResultService)
 {
     _checkBatchService  = checkBatchService;
     _checkService       = checkService;
     _checkResultService = checkResultService;
 }
Ejemplo n.º 7
0
 public BankController(IConfiguration configuration,
                       IWalletService walletService,
                       ICheckService checkService,
                       ILogger <BankController> logger)
 {
     _config        = configuration;
     _logger        = logger;
     _walletService = walletService;
     _checkService  = checkService;
 }
Ejemplo n.º 8
0
        public MainWindow()
        {
            InitializeComponent();

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

            this.listBox_log.ItemsSource = this.logList;
        }
Ejemplo n.º 9
0
        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;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 12
0
 public CheckController(ILogger <CheckController> logger, IOptions <AppConfig> appConfig, ICheckService checkService)
 {
     _logger       = logger;
     _appConfig    = appConfig.Value;
     _checkService = checkService;
 }
Ejemplo n.º 13
0
 public GamerManager(ICheckService govermentCheck)
 {
     _govermentCheck = govermentCheck;
 }
Ejemplo n.º 14
0
 public PreReqValidation(ICheckService checkService)
 {
     _checkService = checkService;
 }
Ejemplo n.º 15
0
 public CheckController(ICheckService checkService, ILogger <CheckController> logger)
 {
     _checkService = checkService;
     _logger       = logger;
 }
Ejemplo n.º 16
0
 public UserValidationService(ICheckService checkService)
 {
     _checkService = checkService;
 }
Ejemplo n.º 17
0
 public CheckController(ICheckService service)
 {
     _service = service;
 }
Ejemplo n.º 18
0
 public AuthManager(ICheckService checkService)
 {
     _checkService = checkService;
 }
Ejemplo n.º 19
0
 public HomeController(IAccountService accountService, ICheckService checkService)
 {
     this.accountService = accountService;
     this.checkService   = checkService;
 }
Ejemplo n.º 20
0
 public PlayerManager(ICheckService checkService)
 {
     _checkService = checkService;
 }
Ejemplo n.º 21
0
        public CheckController(ICheckService checkService)
        {
            Check.If(checkService).IsNotNull();

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