Пример #1
0
        /// <summary>
        /// Bootstraps the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="registrations">The registrations.</param>
        public void Bootstrap(IAppBuilder app, WebApiTestServer.Registrations registrations)
        {
            var domainRegistrations = new Registrations(
                registrations.TypeRegistrations,
                registrations.InstanceRegistrations);

            new Bootstrapper(app, domainRegistrations).Run();
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Bootstrapper"/> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="registrations">The registrations.</param>
 public Bootstrapper(IAppBuilder app, Registrations registrations = null)
 {
     this.app           = app ?? throw new ArgumentNullException(nameof(app));
     this.registrations = registrations;
 }