25 lines
		
	
	
		
			888 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			888 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using GerstITS.Examples.WebClient.Console.Tests;
 | |
| using GerstITS.IoC;
 | |
| using GerstITS.IoC.DotNetCore;
 | |
| using Microsoft.Extensions.Configuration;
 | |
| using Microsoft.Extensions.DependencyInjection;
 | |
| 
 | |
| namespace GerstITS.Examples.WebClient.Console
 | |
| {
 | |
|     public class Module : IIoCModule<IServiceCollection>
 | |
|     {
 | |
|         #region IIoCModule
 | |
| 
 | |
|         public void RegisterComponents(IServiceCollection container)
 | |
|         {
 | |
|             container.AddTransient<IApplicationStart, TestRunner>();
 | |
| 
 | |
|             container.AddTransient<IConfiguration>(c => new ConfigurationBuilder().SetBasePath(AppDomain.CurrentDomain.BaseDirectory)
 | |
|                                                                                   .AddJsonFile("appsettings.json", false, true)
 | |
|                                                                                   .Build());
 | |
|         }
 | |
| 
 | |
|         #endregion
 | |
|     }
 | |
| } |