diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.Core.TestPackage/WixRunner.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/WixToolset.Core.TestPackage/WixRunner.cs b/src/WixToolset.Core.TestPackage/WixRunner.cs index 62502ecc..1c77a7ee 100644 --- a/src/WixToolset.Core.TestPackage/WixRunner.cs +++ b/src/WixToolset.Core.TestPackage/WixRunner.cs | |||
| @@ -13,12 +13,16 @@ namespace WixToolset.Core.TestPackage | |||
| 13 | { | 13 | { |
| 14 | public static int Execute(string[] args, out List<Message> messages) | 14 | public static int Execute(string[] args, out List<Message> messages) |
| 15 | { | 15 | { |
| 16 | var serviceProvider = new WixToolsetServiceProvider(); | ||
| 17 | return Execute(args, serviceProvider, out messages); | ||
| 18 | } | ||
| 19 | |||
| 20 | public static int Execute(string[] args, IServiceProvider serviceProvider, out List<Message> messages) | ||
| 21 | { | ||
| 16 | var listener = new TestListener(); | 22 | var listener = new TestListener(); |
| 17 | 23 | ||
| 18 | messages = listener.Messages; | 24 | messages = listener.Messages; |
| 19 | 25 | ||
| 20 | var serviceProvider = new WixToolsetServiceProvider(); | ||
| 21 | |||
| 22 | var messaging = serviceProvider.GetService<IMessaging>(); | 26 | var messaging = serviceProvider.GetService<IMessaging>(); |
| 23 | messaging.SetListener(listener); | 27 | messaging.SetListener(listener); |
| 24 | 28 | ||
