public void Creates_A_PaymentsController() { var controllerActivator = new HardWiredControllerActivator(_residents, _payments); var controller = controllerActivator.Create(null, null, typeof(PaymentsController)); Assert.IsType <PaymentsController>(controller); }
public void Throws_Exception_For_Unrecognized_ControllerType() { var controllerActivator = new HardWiredControllerActivator(_residents, _payments); Assert.Throws <ArgumentException>(() => controllerActivator.Create(null, null, typeof(System.String)) ); }