public FakeNancyModule(Action<FakeNancyModuleConfigurator> closure) { var configurator = new FakeNancyModuleConfigurator(this); closure.Invoke(configurator); }
/// <summary> /// Initializes a new instance of the <see cref="FakeNancyModule"/> class. /// </summary> /// <param name="closure">The configuration of the module.</param> public FakeNancyModule(Action <FakeNancyModuleConfigurator> closure) { var configurator = new FakeNancyModuleConfigurator(this); closure.Invoke(configurator); }
/// <summary> /// Initializes a new instance of the <see cref="FakeNancyModule"/> class. /// </summary> /// <param name="modulePath">The path that all routes in the module should be relative too.</param> /// <param name="closure">The configuration of the module.</param> public FakeNancyModule(string modulePath, Action <FakeNancyModuleConfigurator> closure) : base(modulePath) { var configurator = new FakeNancyModuleConfigurator(this); closure.Invoke(configurator); }
/// <summary> /// Initializes a new instance of the <see cref="FakeNancyModule"/> class. /// </summary> /// <param name="modulePath">The path that all routes in the module should be relative too.</param> /// <param name="closure">The configuration of the module.</param> public FakeNancyModule(string modulePath, Action<FakeNancyModuleConfigurator> closure) : base(modulePath) { var configurator = new FakeNancyModuleConfigurator(this); closure.Invoke(configurator); }