Exemplo n.º 1
0
 public AggregateScenario(IReadOnlyCollection <IDomainEvent> givenEvents,
                          IReadOnlyCollection <ICommand> givenCommands,
                          IReadOnlyCollection <IDomainEvent> expectedEvents,
                          IAggregateDependencies <T> factory,
                          string name) : base(givenEvents, givenCommands, expectedEvents, name)
 {
     Dependencies = factory;
 }
 public IAggregateScenarioBuilder <T> With(IAggregateDependencies <T> factory)
 {
     _aggregateDependencies = factory;
     return(this);
 }