public AnswerBetCommandHandler(IMemberRepository memberRepository, IBetRepository betRepository, IAuthenticationGateway authentificationGateway, IDateTimeProvider dateTimeProvider)
 {
     _memberRepository        = memberRepository;
     _betRepository           = betRepository;
     _authentificationGateway = authentificationGateway;
     _dateTimeProvider        = dateTimeProvider;
 }
 public SignInCommandHandler(IAuthenticationGateway authenticationGateway,
                             ISignInPresenter signInPresenter,
                             IHashPassword hashPassword)
 {
     _authenticationGateway = authenticationGateway;
     _signInPresenter       = signInPresenter;
     _hashPassword          = hashPassword;
 }
示例#3
0
 public CloseBetCommandHandler(IBetRepository repository,
                               IDateTimeProvider dateTimeProvider,
                               IAuthenticationGateway authenticationGateway)
 {
     _betRepository         = repository;
     _dateTimeProvider      = dateTimeProvider;
     _authenticationGateway = authenticationGateway;
 }
示例#4
0
 public LaunchBetCommandHandler(IBetRepository betRepository,
                                IMemberRepository memberRepository,
                                IAuthenticationGateway authenticationGateway,
                                IDateTimeProvider dateTimeProvider)
 {
     _betRepository         = betRepository ?? throw new ArgumentNullException(nameof(betRepository), $"{nameof(betRepository)} cannot be null");
     _memberRepository      = memberRepository ?? throw new ArgumentNullException(nameof(memberRepository), $"{nameof(memberRepository)} cannot be null");
     _authenticationGateway = authenticationGateway;
     _dateTimeProvider      = dateTimeProvider;
 }
        public EFAuthenticationTokenGatewayTests()
        {
            var databaseUrl = Environment.GetEnvironmentVariable("DATABASE_URL");
            var gateway     = new EFAuthenticationTokenGateway(databaseUrl);

            _classUnderTest = gateway;

            var assetRegisterContext = new AssetRegisterContext(databaseUrl);

            assetRegisterContext.Database.Migrate();
        }
 public SubscribeMemberCommanderHandler(IMemberRepository memberReposiory, IAuthenticationGateway authenticationGateway)
 {
     _memberReposiory       = memberReposiory;
     _authenticationGateway = authenticationGateway;
 }