File tree Expand file tree Collapse file tree
tests/BuslyCLI.Console.Tests/Commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using BuslyCLI . Infrastructure ;
2- using Microsoft . Extensions . DependencyInjection ;
3- using Spectre . Console . Cli . Extensions . DependencyInjection ;
4- using Spectre . Console . Cli . Testing ;
5-
6- namespace BuslyCLI . Console . Tests . Commands ;
7-
8- public abstract class CommandTestBase
9- {
10- protected CommandAppTester Sut { get ; private set ; } = null ! ;
11-
12- [ SetUp ]
13- public void Setup ( )
14- {
15- var registrations = new ServiceCollection ( ) ;
16- registrations . AddBuslyCLIServices ( ) ;
17- using var registrar = new DependencyInjectionRegistrar ( registrations ) ;
18- Sut = new CommandAppTester ( registrar ) ;
19- Sut . Configure ( AppConfiguration . GetSpectreCommandConfiguration ( ) ) ;
20- }
21- }
1+ using BuslyCLI . Infrastructure ;
2+ using Microsoft . Extensions . DependencyInjection ;
3+ using Spectre . Console . Cli . Extensions . DependencyInjection ;
4+ using Spectre . Console . Cli . Testing ;
5+
6+ namespace BuslyCLI . Console . Tests . Commands ;
7+
8+ public abstract class CommandTestBase
9+ {
10+ protected CommandAppTester Sut { get ; private set ; } = null ! ;
11+
12+ [ SetUp ]
13+ public void Setup ( )
14+ {
15+ var registrations = new ServiceCollection ( ) ;
16+ registrations . AddBuslyCLIServices ( ) ;
17+ using var registrar = new DependencyInjectionRegistrar ( registrations ) ;
18+ Sut = new CommandAppTester ( registrar ) ;
19+ Sut . Configure ( AppConfiguration . GetSpectreCommandConfiguration ( ) ) ;
20+ }
21+ }
You can’t perform that action at this time.
0 commit comments