Exemplo n.º 1
0
        public static void ShouldThrowEx(this IClassifiedHttpControllerSelectorService selectorService, IList <string> apiControllerFullNames, string apiFolder, string controller, string area, params string[] categories)
        {
            AssertHelper.ShouldThrows <ArgumentNullException>(() =>
            {
                selectorService.Select(apiControllerFullNames, apiFolder, controller, area, categories);
            });

            AssertHelper.ShouldThrows <ArgumentNullException>(() =>
            {
                selectorService.Select(apiControllerFullNames, apiFolder, controller, area, categories);
            });

            AssertHelper.ShouldThrows <ArgumentNullException>(() =>
            {
                selectorService.Select(apiControllerFullNames, apiFolder, controller, area, categories);
            });;
        }
Exemplo n.º 2
0
        public static void ShouldReturnTheOne(this IClassifiedHttpControllerSelectorService selectorService, string expectedResult, IList <string> apiControllerFullNames, string apiFolder, string controller, string area, params string[] categories)
        {
            var theOne = selectorService.Select(apiControllerFullNames, apiFolder, controller, area, categories);

            theOne.ShouldEqual(expectedResult);
        }