Esempio n. 1
0
 public CardService(ICardRepository cardRepository, IValidator validator, IProjectService projectService, ISession session)
 {
     _cardRepository = cardRepository;
     _validator = validator;
     _projectService = projectService;
     _session = session;
 }
 public CateApiController(ICardRepository cardRepo, ICateRepository cateRepo, ILoggingRepository log)
     : base(log)
 {
     _cateRepo = cateRepo;
     _cardRepo = cardRepo;
     includeProperties = Expressions.LoadCateNavigations();
 }
 public override void When()
 {
     this.respository = this.RepositoryFactory.CreateRepository<CardRepository, ICardRepository>(
         this.TableStorageContext.Object,
         CardRowTypes.CARD,
         TestValues.NAME_IDENTIFIER);
 }
 public BoardsController(
     ITrelloConfiguration trelloConfiguration, 
     ICardRepository cardRepository)
 {
     _trelloConfiguration = trelloConfiguration;
     _cardRepository = cardRepository;
 }
Esempio n. 5
0
 public SpecialNoteService(ISpecialNoteRepository specialNoteRepository, ICardRepository cardRepository,
     IActivityHelperService activityHelperService, IUserProfileRepository userProfileRepository)
 {
     _specialNoteRepository = specialNoteRepository;
     _cardRepository = cardRepository;
     _activityHelperService = activityHelperService;
     _userProfileRepository = userProfileRepository;
 }
        static CardRepositoryLocator()
        {
            string dataSource = Configuration.GetDataSource(DataSources.CardsDataSourceName, Properties.Settings.Default.CardsDataSource);
            if (!_setRepo.ContainsKey(dataSource)) throw new InvalidDataSourceException();

            _setRepo[dataSource].Invoke();
            _repo = RepositoryFactory.Make<ICardRepository>();
        }
Esempio n. 7
0
 public BSEWalletManager(IZipCodeRepository zipCodeRepository, IStateRepository stateRepository, ICardRepository cardRepository, ICustomerRepository customerRepository, ITransactionRepository transactionRepository, ILoginRepository login)
 {
     _ZipCodeRepository = zipCodeRepository;
     _StateRepository = stateRepository;
     _CardRepository = cardRepository;
     _CustomerRepository = customerRepository;
     _TransactionRepository = transactionRepository;
     _Login = login;
 }
Esempio n. 8
0
 public FeedbackService(IFeedbackRepository feedbackRepository, ICardRepository cardRepository, ILogger logger, 
     IUserProfileRepository userProfileRepository, IActivityHelperService activityHelperService)
 {
     _feedbackRepository = feedbackRepository;
     _cardRepository = cardRepository;
     _logger = logger;
     _userProfileRepository = userProfileRepository;
     _activityHelperService = activityHelperService;
 }
Esempio n. 9
0
 public CandidateService(ICandidateRepository candidateRepository, ICardRepository cardRepository,
     IPoolRepository poolRepository, ILogger logger, IUserProfileRepository userProfileRepository, IActivityHelperService activityHelperService)
 {
     _candidateRepository = candidateRepository;
     _cardRepository = cardRepository;
     _logger = logger;
     _userProfileRepository = userProfileRepository;
     _poolRepository = poolRepository;
     _activityHelperService = activityHelperService;
 }
Esempio n. 10
0
 public CustomerController(ICustomerRepository customerRepository
     ,IResourceService resourceService
     ,IResourceRepository resourceRepository
     ,ICardRepository cardRepo)
 {
     _customerRepository = customerRepository;
     _resourceService = resourceService;
     _resourceRepository = resourceRepository;
     _cardRepo = cardRepo;
 }
 public StorePromotionController(ICardRepository cardRepo,
     IGroupCardService groupData,
     IStoreCouponsRepository storecouponRepo,
     IStorePromotionRepository storeproRepo)
 {
     _cardRepo = cardRepo;
     _groupData = groupData;
     _storecouponRepo = storecouponRepo;
     _storeproRepo = storeproRepo;
 }
Esempio n. 12
0
 public TestService(ITestRepository testRepository, ICardRepository cardRepository, 
     IFeedbackRepository feedbackRepository, IUnitOfWork unitOfWork,ILogger logger,
     IUserProfileRepository userProfileRepository)
 {
     _testRepository = testRepository;
     _cardRepository = cardRepository;
     _unitOfWork = unitOfWork;
     _logger = logger;
     _feedbackRepository = feedbackRepository;
     _userProfileRepository = userProfileRepository;
 }
Esempio n. 13
0
 public CardService(ICardRepository cardRepository, IUserProfileRepository userProfileRepository, IUnitOfWork unitOfWork, ILogger logger, IActivityHelperService activityHelperService, ISpecialNoteRepository specialNoteRepository, IFeedbackRepository feedbackRepository, IInterviewRepository interviewRepository, ITestRepository testRepository)
 {
     _cardRepository = cardRepository;
     _userProfileRepository = userProfileRepository;
     _unitOfWork = unitOfWork;
     _logger = logger;
     _activityHelperService = activityHelperService;
     _specialNoteRepository = specialNoteRepository;
     _feedbackRepository = feedbackRepository;
     _interviewRepository = interviewRepository;
     _testRepository = testRepository;
 }
Esempio n. 14
0
        public FileService(IFileRepository fileRepository, ILogger logger, ICandidateService candidateService,
            IResumeRepository resumeRepository, IActivityHelperService activityHelperService, ICardRepository cardRepository,
			ICandidateRepository candidateRepository)
        {
            _fileRepository = fileRepository;
            _logger = logger;
            _candidateService = candidateService;
            _resumeRepository = resumeRepository;
            _candidateRepository = candidateRepository;
            _activityHelperService = activityHelperService;
            _cardRepository = cardRepository;
        }
Esempio n. 15
0
        public CandidateServiceTest()
        {
            _cardRepository= Substitute.For<ICardRepository>();
            _candidateRepository = Substitute.For<ICandidateRepository>();
            _poolRepository = Substitute.For<IPoolRepository>();
            _userProfileRepository = Substitute.For<IUserProfileRepository>();

            var logger = Substitute.For<ILogger>();
            var activityHelperService = Substitute.For<IActivityHelperService>();

            _candidateService = new CandidateService(_candidateRepository, _cardRepository,
                                                     _poolRepository, logger, _userProfileRepository, activityHelperService);
        }
Esempio n. 16
0
        public VacancyServiceTests()
        {
            _vacancyRepository = Substitute.For<IVacancyRepository>();
            _candidateRepository = Substitute.For<ICandidateRepository>();
            _cardRepository = Substitute.For<ICardRepository>();
            _poolRepository = Substitute.For<IPoolRepository>();

            var unitOfWork = Substitute.For<IUnitOfWork>();
            var logger = Substitute.For<ILogger>();
            var activityHelperService = Substitute.For<IActivityHelperService>();
            var userProfieRepository = Substitute.For<IUserProfileRepository>();

            _vacancyService = new VacancyService(_vacancyRepository, _candidateRepository,_cardRepository, logger, unitOfWork,
                                                 activityHelperService, userProfieRepository, _poolRepository);
        }
 public StorePromotionCouponController(ICardRepository cardRepo,
     IGroupCardService groupData,
     IStoreCouponsRepository storecouponRepo,
     IStorePromotionRepository storeproRepo,
     IPointRepository pointRepo,
     IStorePromotionScopeRepository storeproscopeRepo,
     ICouponLogRepository couponlogRepo)
 {
     _cardRepo = cardRepo;
     _groupData = groupData;
     _storecouponRepo = storecouponRepo;
     _storeproRepo = storeproRepo;
     _pointRepo = pointRepo;
     _storeproscopeRepo = storeproscopeRepo;
     _couponlogRepo = couponlogRepo;
 }
        public CardApiController(
            ICateRepository cateRepo,
            ICardRepository cardRepo,
            UserManager<ApplicationUser> userManager,
            ILoggingRepository logRepo,
            GraduationDbContext context,
            SignInManager<ApplicationUser> signInManager) : base(logRepo)
        {
            _userManager = userManager;
            _signInManager = signInManager;
            _context = context;
            includeProperties = Expressions.LoadCardNavigations();
            _cardRepo = cardRepo;
            _cateRepo = cateRepo;

            itemsPerPage = 3;
            pageInit = 6;
        }
Esempio n. 19
0
 public VacancyService(
     IVacancyRepository vacancyRepository,
     ICandidateRepository candidateRepository,
     ICardRepository cardRepository,
     ILogger logger,
     IUnitOfWork unitOfWork,
     IActivityHelperService activityHelperService,
     IUserProfileRepository userProfileRepository,
     IPoolRepository poolRepository)
 {
     _vacancyRepository = vacancyRepository;
     _candidateRepository = candidateRepository;
     _cardRepository = cardRepository;
     _logger = logger;
     _unitOfWork = unitOfWork;
     _activityHelperService = activityHelperService;
     _userProfileRepository = userProfileRepository;
     _poolRepository = poolRepository;
 }
Esempio n. 20
0
 public AuthController(ICardRepository repository)
 {
     _repository = repository;
 }
Esempio n. 21
0
 public CardService(ICardRepository cardRepository)
     : base(cardRepository)
 {
     _cardRepository = cardRepository;
 }
 public EmployeeController(ICardRepository repo)
 {
     context = repo;
 }
Esempio n. 23
0
 public void SetUp()
 {
     _cardTypeStrategies = Substitute.For <IEnumerable <ICardTypeStrategy> >();
     _cardRepository     = Substitute.For <ICardRepository>();
     _sut = new CardService(_cardTypeStrategies, _cardRepository);
 }
 public void SetUp()
 {
     this._repository = new CardRepository();
     this._initializer = new SimpleCardsRepositoryInitialzier();
     this._initializer.Init((IEditableRepository<ICard>)this._repository);
 }
Esempio n. 25
0
 public Advanced(ICardRepository cardRepository, string username) : base(cardRepository, username, DEF_ADVANCED_HEALTH)
 {
 }
 public CardService(ICardRepository cardRepository)
 {
     _cardRepo = cardRepository;
 }
 protected Player(ICardRepository cardRepository, string username, int health)
 {
     this.CardRepository = cardRepository;
     this.Username       = username;
     this.Health         = health;
 }
Esempio n. 28
0
 public Beginner(ICardRepository cardRepository, string username)
     : base(cardRepository, username, INITIAL_BEGINNER_HEALTH)
 {
 }
Esempio n. 29
0
 public Beginner(ICardRepository cardRepository, string username)
     : base(cardRepository, username, initialHealthPoints)
 {
 }
Esempio n. 30
0
 public Beginner(ICardRepository cardRepository, string username)
     : base(cardRepository, username, 50)
 {
 }
Esempio n. 31
0
 public CardController(ICardRepository CardRepository,
                       IMenhGiaRepository menhgiaRepository)
 {
     _CardRepository    = CardRepository;
     _menhgiaRepository = menhgiaRepository;
 }
 public Beginner(ICardRepository cardRepository, string username)
     : base(cardRepository, username, BeginnerInitialHealth)
 {
 }
Esempio n. 33
0
 public CardBll(ICardRepository repostory)
 {
     _repostory = repostory;
 }
Esempio n. 34
0
        /// <summary>
        /// 会员充值
        /// </summary>
        /// <returns></returns>
        public async Task <IActionResult> Recharge([FromQuery] string card_id, [FromQuery] string encrypt_code, [FromQuery] string openid, [FromServices] ICardRepository service)
        {
            var member = await service.GetMemberAsync(card_id, openid);

            if (member == null)
            {
                return(Content("会员不存在"));
            }
            var card = await service.GetCardAsync(card_id);

            ViewBag.color        = WxHelper.WxColors[card.Color];
            ViewBag.card_id      = card_id;
            ViewBag.encrypt_code = encrypt_code;
            ViewBag.openid       = openid;

            return(View(member));
        }
 public MaledictionCommandHandler(IGemRepository gemRepository, ICardRepository cardRepository)
 {
     _gemRepository  = gemRepository;
     _cardRepository = cardRepository;
 }
Esempio n. 36
0
 public CardBusiness()
 {
     _repo = new CardRepository();
 }
 public CompanyController(ICardRepository repo)
 {
     context = repo;
 }
Esempio n. 38
0
 public CardAppService(ICardRepository repository)
     : base(repository)
 {
     _repository = repository;
 }
Esempio n. 39
0
 public ATMController(ICardRepository repository, ITerminalSessionManager sessionManager, ATMService atmService)
 {
     _repository     = repository;
     _sessionManager = sessionManager;
     _atmService     = atmService;
 }
Esempio n. 40
0
 public CardController(UserManager <ApplicationUser> userManager, ICardRepository cardRepository)
 {
     _userManager    = userManager;
     _cardRepository = cardRepository;
 }
Esempio n. 41
0
 public CardManager(ICardRepository cardRepository)
 {
     _cardRepository = cardRepository;
 }
 public ManagerController()
 {
     this.cardRepository   = new CardRepository();
     this.playerRepository = new PlayerRepository();
     this.battleField      = new BattleField();
 }
 public Advanced(ICardRepository cardRepository, string username)
     : base(cardRepository, username, InitialHealthPoints)
 {
 }
 public CreateController(ICardRepository repo)
 {
     context = repo;
 }
Esempio n. 45
0
 public EBankingController(IEBankingRepository eBankingRepo, IHttpContextAccessor httpContextAccessor, ICardRepository cardRequestRepo, IAccountController accountController)
 {
     _eBankingRepo        = eBankingRepo;
     _httpContextAccessor = httpContextAccessor;
     _cardRequestRepo     = cardRequestRepo;
     //var result = new AccountController().CheckSessionState();
     _accountController = accountController.CheckSessionState();
 }
 public GetCardByNumberHandler(ICardRepository cardRepository)
 {
     _cardRepository = cardRepository ?? throw new ArgumentNullException(nameof(cardRepository));
 }
Esempio n. 47
0
 public DayController(IDayRepository dayRepository,
     ICardRepository cardRepository)
 {
     this.repositoryDay = dayRepository;
     this.repositoryCard = cardRepository;
 }
Esempio n. 48
0
 public CardDataService(IGroupCardService groupCardService, ICardRepository cardRepository, IUserService userService)
 {
     _groupCardService = groupCardService;
     _cardRepository = cardRepository;
     _userService = userService;
 }
Esempio n. 49
0
 public CartController(ICardRepository cardRepo, Cart cart)
 {
     _cardRepo = cardRepo;
     _cart     = cart;
 }
 public CustomerController()
 {
     customerRepository = new CustomerRepository();
     cardRepository = new CardRepository();
 }
Esempio n. 51
0
 public BSEWalletManager(ICardRepository cardRepository)
     : this(null, null,cardRepository,null,null,null)
 {
 }
Esempio n. 52
0
 public Beginner(ICardRepository cardRepository, string username)
     : base(cardRepository, username, DefaultHealthPoints)
 {
 }
 public CardsQueryHandlers(ICardRepository projectRepository, IMapper mapper, IMediator mediator) : base(mediator, mapper)
 {
     _projectRepository = projectRepository;
 }
Esempio n. 54
0
 public CardManager(ICardRepository cardRepository, ICardTransactionRepository cardTransactionRepository, IAuthenticationManager authenticationManager)
 {
     this.cardRepository            = cardRepository;
     this.cardTransactionRepository = cardTransactionRepository;
     this.authenticationManager     = authenticationManager;
 }
Esempio n. 55
0
 public BoardController(IFixieApiService fixieApiService, ICardRepository cardRepository)
 {
     _fixieApiService = fixieApiService;
     _cardRepository = cardRepository;
 }
Esempio n. 56
0
 public HomeController(ICategoryRepository categoryRepo, ICardRepository cardRepo)
 {
     _cardRepository     = cardRepo;
     _categoryRepository = categoryRepo;
 }