public void CreateExecutor_should_return_a_TypedControllerExecutor_ready_to_use() { var provider = new TypedControllerExecutorProvider {ExecutorFactory = new ExportFactory<TypedControllerExecutor>(GetExecutor)}; var data = new RouteData(); var meta = new TypedControllerMeta(null, null); var executor = (TypedControllerExecutor) provider.CreateExecutor(meta, data, null); Assert.AreSame(data, executor.RouteData); Assert.AreSame(meta, executor.Meta); }
public void CreateExecutor_should_return_a_TypedControllerExecutor_ready_to_use() { var provider = new TypedControllerExecutorProvider { ExecutorFactory = new ExportFactory <TypedControllerExecutor>(GetExecutor) }; var data = new RouteData(); var meta = new TypedControllerMeta(null, null); var executor = (TypedControllerExecutor)provider.CreateExecutor(meta, data, null); Assert.AreSame(data, executor.RouteData); Assert.AreSame(meta, executor.Meta); }