Пример #1
0
        public void find_by_any_looks_at_input_model_first_then_handler_type_second()
        {
            var candidates = new ChainSearch {
                TypeMode = TypeSearchMode.Any,
                Type     = typeof(SimpleInputModel)
            }.FindCandidatesByType(theGraph);

            candidates.Count().ShouldBe(3);

            candidates.First().Select(x => x.FirstCall().Description)
            .ShouldHaveTheSameElementsAs("OneController.Query(SimpleInputModel model) : SimpleOutputModel", "TwoController.NotQuery(SimpleInputModel model) : SimpleOutputModel");
        }