public void SetUp() { var registry = new IntegratorTestRegistry(); _graph = registry.BuildGraph(); _commandGraph = registry.CommandRegistry.BuildGraph(); }
public void Configure(CommandGraph graph) { graph .ChainsForExisting .Each(chain => { graph.Observer.RecordCallStatus(chain.Placeholder(), "Adding FindEntityCommand directly before placeholder"); chain.Placeholder().AddBefore(new Wrapper(typeof(FindEntityCommand<>).MakeGenericType(chain.EntityType))); }); }
public void BuildChains(TypePool pool, CommandGraph graph) { pool .TypesMatching(TypeFilters.Matches) .Each(t => { graph.AddChainForNew(new CommandChain(t)); graph.AddChainForExisting(new CommandChain(t)); }); }
public void Configure(CommandGraph graph) { graph .ChainsForNew .Each(chain => { graph.Observer.RecordCallStatus(chain.Placeholder(), "Adding InsertEntityCommand directly after placeholder"); chain.Placeholder().AddAfter( new Wrapper(typeof (InsertEntityCommand<>).MakeGenericType(chain.EntityType))); }); }
public static void Configure(this IEnumerable<IConfigurationAction> actions, CommandGraph graph) { actions.Each(x => x.Configure(graph)); }
public void Configure(CommandGraph graph) { graph.ChainsForNew.Each(c => ModifyChain(c, graph.Observer)); graph.ChainsForExisting.Each(c => ModifyChain(c, graph.Observer)); }
public void Configure(CommandGraph graph) { var visitor = new CommandVisitor(graph.Observer, _reasonToVisit); _configureAction(visitor); graph.VisitCommands(visitor); }
public void Configure(CommandGraph graph) { _action(graph); }