public void Build_should_inspect_controller_type_to_collect_and_normalize_name() { var builder = new ControllerDescriptorBuilder(); var descriptor = builder.Build(typeof (SomeTestController)); Assert.AreEqual("sometest", descriptor.Name); }
public void Build_should_inspect_controller_type_to_collect_actions() { var builder = new ControllerDescriptorBuilder(); var descriptor = builder.Build(typeof(SomeTestController)); Assert.IsTrue(descriptor.Actions.Any(a => a.Name == "Index")); }
public void Build_should_inspect_controller_type_to_collect_and_normalize_name() { var builder = new ControllerDescriptorBuilder(); var descriptor = builder.Build(typeof(SomeTestController)); Assert.AreEqual("sometest", descriptor.Name); }