Пример #1
0
        public ArgumentRepository(IArgumentQuery query, IEventStore store)
        {
            Guard.AgainstNull(query, nameof(query));
            Guard.AgainstNull(store, nameof(store));

            _query = query;
            _store = store;
        }
Пример #2
0
        public ArgumentsController(IServiceBus bus, IDatabaseContextFactory databaseContextFactory,
                                   IDataRowMapper dataRowMapper, IArgumentQuery argumentQuery)
        {
            Guard.AgainstNull(bus, nameof(bus));
            Guard.AgainstNull(databaseContextFactory, nameof(databaseContextFactory));
            Guard.AgainstNull(dataRowMapper, nameof(dataRowMapper));
            Guard.AgainstNull(argumentQuery, nameof(argumentQuery));

            _bus = bus;
            _databaseContextFactory = databaseContextFactory;
            _dataRowMapper          = dataRowMapper;
            _argumentQuery          = argumentQuery;
        }
Пример #3
0
        public ArgumentHandler(IArgumentQuery query)
        {
            Guard.AgainstNull(query, nameof(query));

            _query = query;
        }