コード例 #1
0
 public ProjectAggregateUnitOfWork(
     ProjectAggregateCommandContext dbContext,
     IMutatableRepository <ProjectAggregate> projectAggregates)
 {
     ProjectAggregates = projectAggregates;
     _dbContext        = dbContext;
 }
コード例 #2
0
 public ProductUnitOfWork(
     ProductCommandContext commandContext,
     IMutatableRepository <Product> products,
     IMutatableRepository <Deal> deals,
     IReadableRepository <Product> readProducts)
 {
     _commandContext = commandContext;
     Products        = products;
     Deals           = deals;
     ReadProducts    = readProducts;
 }
コード例 #3
0
 public DataUnitOfWork(
     CommandDbContext commandDbContext,
     IMutatableRepository <User> users,
     IMutatableRepository <Token> tokens,
     IMutatableRepository <Room> rooms,
     IMutatableRepository <Message> messages)
 {
     _commandDbContext = commandDbContext;
     Users             = users;
     Tokens            = tokens;
     Rooms             = rooms;
     Messages          = messages;
 }
コード例 #4
0
 public TestCommandHandler(IMutatableRepository <ProjectAggregate> projectAggregate)
 {
     _projectAggregate = projectAggregate;
 }