public void Register_ShouldRegisterType_WhenTypeIsValid()
 {
     var handler = new ApiRequestHandler("test");
     var type = typeof(ValidController);
     handler.Register("Test", type);
     Assert.AreEqual(type, handler.GetControllerType("Test"));
 }
 public void RegisterAll_ShouldRegisterTypesWithDefaultName_WhenAssemblyHasValidControllers()
 {
     var handler = new ApiRequestHandler("test");
     var type = typeof(ValidController);
     handler.RegisterAll(Assembly.GetAssembly(type));
     Assert.AreEqual(type.FullName, handler.GetControllerType("Valid").FullName);
 }