public void should_enumerate_actions_in_all_assemblies_except_the_swank_assembly_by_default() { _graph.AddAction <GetHandler>("GET"); var chains = new BehaviorSource(_graph, new Configuration()).GetChains(); chains.Count.ShouldEqual(4); chains.All(x => x.FirstCall().HandlerType.Assembly == Assembly.GetExecutingAssembly()).ShouldBeTrue(); }
public void SetUp() { _graph = Behavior.BuildGraph(); _graph.AddAction <PostHandler>(); var chain = _graph.GetAction <PostHandler>().ParentChain(); var secondAction = new ActionCall(typeof(Handlers.Widgets.PostHandler), ReflectionHelper.GetMethod <Handlers.Widgets.PostHandler>(x => x.Execute_Id(null))); chain.AddToEnd(secondAction); _spec = BuildSpec <PostHandler>(_graph); }