Ejemplo n.º 1
0
        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>);
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     TestProductService.Dispose();
 }