Example #1
0
        public FakeNancyModule(Action<FakeNancyModuleConfigurator> closure)
        {
            var configurator =
                new FakeNancyModuleConfigurator(this);

            closure.Invoke(configurator);
        }
Example #2
0
        /// <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);
        }
Example #3
0
        /// <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);
        }
Example #4
0
        /// <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);
        }