コード例 #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>);
        }
コード例 #2
0
 public void Dispose()
 {
     TestProductService.Dispose();
 }