public static ServiceProvider ConfigureServices(IServiceCollection services)
        {
            services.AddHttpClient();
            CoreServices.ConfigureServices(services);
            services.AddTransient <IContentsDisplayHandler, ContentsDisplayHandler>()
            .AddSingleton <IPhotoAlbumApplicationHandler, PhotoAlbumApplicationHandler>()
            .AddTransient <Introduction>()
            .AddTransient <RequestAlbumNumber>();

            return(services.BuildServiceProvider(true));
        }
Example #2
0
 public static void ConfigureServices(IServiceCollection services)
 {
     CoreServices.ConfigureServices(services);
     services.AddTransient <IHttpHandler, MockHttpClientHandler>();
 }