public TestProductServiceFixture() { var services = new ServiceProvider().ServiceCollection; var appServices = ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(services); var config = appServices.GetService(typeof(IOptions <Application>)); TestProductService = new TestProductService(config as IOptions <Application>); }
public void Dispose() { TestProductService.Dispose(); }