Datei: UnitTestGenerator/UnitTests/NDOTest.cs
Last Commit (0bec001)
| 1 | -- File didn't exist -- |
New Commit (6d63e12)
| 1 | using Formfakten.TestLogger; |
| 2 | using Microsoft.Extensions.DependencyInjection; |
| 3 | using Microsoft.Extensions.Hosting; |
| 4 | using Microsoft.Extensions.Logging; |
| 5 | using NDO.Application; |
| 6 | using H = Microsoft.Extensions.Hosting; |
| 7 | |
| 8 | namespace NdoUnitTests |
| 9 | { |
| 10 | ····public class NDOTest |
| 11 | ····{ |
| 12 | ········public IHost Host { get; private set; } |
| 13 | ········public NDOTest() |
| 14 | ········{ |
| 15 | ············var builder = H.Host.CreateDefaultBuilder(); |
| 16 | ············builder.ConfigureServices( services => |
| 17 | ············{ |
| 18 | ················services.AddLogging( b => |
| 19 | ················{ |
| 20 | ····················b.ClearProviders(); |
| 21 | ····················b.AddFormfaktenLogger(); |
| 22 | ················} ); |
| 23 | |
| 24 | ················services.AddNdo( null, null ); |
| 25 | ············} ); |
| 26 | |
| 27 | ············this.Host = builder.Build(); |
| 28 | ············this.Host.Services.UseNdo(); |
| 29 | ········} |
| 30 | ····} |
| 31 | } |
| 32 |