public CommandStore(IDocumentRepository <CommandDocument> commandRepository, ICommandDocumentFactory commandDocumentFactory) { _commandRepository = commandRepository; _commandDocumentFactory = commandDocumentFactory; }
public CommandStore(IOptions <DomainDbConfiguration> settings, ICommandDocumentFactory commandDocumentFactory) { _dbContext = new DomainDbContext(settings); _commandDocumentFactory = commandDocumentFactory; }