public void Initialize() { _repository = A.Fake <IUserRepository>(); _mediatorFactory = A.Fake <IMediatorFactory>(); _sut = new Application.Features.User.Register.RegisterUserMediatorCommandHandler(_repository, _mediatorFactory); }
public AuthenticateUserMediatorCommandHandler(IReadUserRepository readUserRepository, IUserRepository userRepository, IMediatorFactory mediatorFactory, ISecurityService securityService) { _readUserRepository = readUserRepository; _userRepository = userRepository; _mediatorFactory = mediatorFactory; _securityService = securityService; }
public void Initialize() { _mediatorFactory = A.Fake <IMediatorFactory>(); _repository = A.Fake <ITicketRepository>(); _sut = new RegisterTicketMediatorCommandHandler(_mediatorFactory, _repository); }
public void Initialize() { _readUserRepository = A.Fake <IReadUserRepository>(); _userRepository = A.Fake <IUserRepository>(); _mediatorFactory = A.Fake <IMediatorFactory>(); _securityService = A.Fake <ISecurityService>(); _authenticateUserMediatorCommandBuilder = new AuthenticateUserMediatorCommandBuilder(); _authenticateUserMediatorCommandResponseBuilder = new AuthenticateUserMediatorCommandResponseBuilder(); _validateHashedPasswordMediatorQueryBuilder = new ValidateHashedPasswordMediatorQueryBuilder(); _validateHashedPasswordMediatorQueryResultBuilder = new ValidateHashedPasswordMediatorQueryResultBuilder(); _domainUserBuilder = new DomainUserBuilder(); _readUserModelBuilder = new ReadUserModelBuilder(); _sut = new AuthenticateUserMediatorCommandHandler(_readUserRepository, _userRepository, _mediatorFactory, _securityService); }
public HostedService( ILogger <HostedService> logger, IHostApplicationLifetime appLifetime, ISqlConnectionManager sqlConnectionManager, IDatabaseContext dbContext, IMediatorFactory mediatorFactory ) { _logger = logger; _mediatorFactory = mediatorFactory; _sqlConnectionManager = sqlConnectionManager; _dbContext = dbContext; appLifetime.ApplicationStarted.Register(OnStarted); appLifetime.ApplicationStopping.Register(OnStopping); appLifetime.ApplicationStopped.Register(OnStopped); }
/// <summary> /// CTor /// </summary> /// <param name="mediatorFactory"></param> /// <param name="httpContextAccessor"></param> public TicketsController(IMediatorFactory mediatorFactory, IHttpContextAccessor httpContextAccessor) { _mediatorFactory = mediatorFactory; _httpContextAccessor = httpContextAccessor; }
public RegisterUserMediatorCommandHandler(IUserRepository repository, IMediatorFactory mediatorFactory) { _repository = repository; _mediatorFactory = mediatorFactory; }
/*============================================================================*/ /* Constructor */ /*============================================================================*/ public MediatorViewHandler(IMediatorFactory factory) { _factory = factory; }
/// <summary> /// CTor /// </summary> /// <param name="mediatorFactory"></param> public UsersController(IMediatorFactory mediatorFactory) { _mediatorFactory = mediatorFactory; }
public RegisterTicketMediatorCommandHandler(IMediatorFactory mediatorFactory, ITicketRepository repository) { _mediatorFactory = mediatorFactory; _repository = repository; }
/*============================================================================*/ /* Constructor */ /*============================================================================*/ public MediatorMap(IContext context) { _logger = context.GetLogger(this); _factory = new MediatorFactory(context.injector); _viewHandler = new MediatorViewHandler(_factory); }
/*============================================================================*/ /* Constructor */ /*============================================================================*/ public MediatorViewHandler (IMediatorFactory factory) { _factory = factory; }