You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/samples/BookStore/test/Acme.BookStore.Web.Tests/BookStoreWebTestStartup.cs

26 lines
684 B

using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Volo.Abp;
namespace Acme.BookStore
{
public class BookStoreWebTestStartup
{
public IServiceProvider ConfigureServices(IServiceCollection services)
{
services.AddApplication<BookStoreWebTestModule>(options =>
{
options.UseAutofac();
});
return services.BuildServiceProviderFromFactory();
}
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
{
app.InitializeApplication();
}
}
}