public EventDispatcher( MessageBus messageBus, IDomainLogger domainLogger) { _domainLogger = domainLogger; _messageBus = messageBus; }
public UserController( Database database, MessageBus messageBus, IDomainLogger domainLogger) { _database = database; _eventDispatcher = new EventDispatcher( messageBus, domainLogger); }
public UserController( Transaction transaction, MessageBus messageBus, IDomainLogger domainLogger) { _transaction = transaction; _userRepository = new UserRepository(transaction); _companyRepository = new CompanyRepository(transaction); _eventDispatcher = new EventDispatcher( messageBus, domainLogger); }
public UserController( CrmContext context, MessageBus messageBus, IDomainLogger domainLogger) { _context = context; _userRepository = new UserRepository(context); _companyRepository = new CompanyRepository(context); _eventDispatcher = new EventDispatcher( messageBus, domainLogger); }
public LogInterceptor(IDomainLogger logger) { _logger = logger; }
public CommandBus(IDomainLogger domainLogger) { this.domainLogger = domainLogger; }
private string Execute(Func <UserController, string> func, MessageBus messageBus, IDomainLogger logger) { using (var context = new CrmContext(ConnectionString)) { var controller = new UserController(context, messageBus, logger); return(func(controller)); } }
public StandaloneTester() { _domainLogger = new DomainLogger(Environment.TickCount, Guid.NewGuid()); }