public void Should_be_Extract_the_Parameters_and_the_Info_in_Dictionary() { IUrlDispatcher dispatcher = new UrlDispatcher(); var parameterInfo = dispatcher.Dispatch<HomeController>(p => p.GetById(1)); parameterInfo.Item2["id"].Should().Be("1"); }
public void Should_be_able_to_Get_the_Controller_name() { IUrlDispatcher dispacther = new UrlDispatcher(); var controllerName = dispacther.Dispatch<HomeController>(p => p.Get()); controllerName.Item2["controller"].Should().Be("home"); }