diff --git a/src/FakeXrmEasy.Core/Middleware/MiddlewareBuilder.cs b/src/FakeXrmEasy.Core/Middleware/MiddlewareBuilder.cs index 87c7f89f..73246553 100644 --- a/src/FakeXrmEasy.Core/Middleware/MiddlewareBuilder.cs +++ b/src/FakeXrmEasy.Core/Middleware/MiddlewareBuilder.cs @@ -143,7 +143,13 @@ public IMiddlewareBuilder SetLicense(FakeXrmEasyLicense license) /// public IMiddlewareBuilder SetSubscriptionStorageProvider(ISubscriptionStorageProvider storageProvider, bool upgradeRequested = false, bool renewalRequested = false) { - SubscriptionManager.SetSubscriptionStorageProvider(storageProvider, new UserReader(), upgradeRequested, renewalRequested); + var userReader = new UserReader(); + Console.WriteLine($"Setting Subscription Storage Provider..."); + Console.WriteLine($" -> Running as '{userReader.GetCurrentUserName()}' ..."); + + SubscriptionManager.SetSubscriptionStorageProvider(storageProvider, userReader, upgradeRequested, renewalRequested); + + Console.WriteLine($"Setting Subscription Storage Provider ok."); return this; } }