diff --git a/Vonage.Test.Unit/Extensions/ServiceCollectionExtensionsTest.cs b/Vonage.Test.Unit/Extensions/ServiceCollectionExtensionsTest.cs index 954356bbd..00ed69169 100644 --- a/Vonage.Test.Unit/Extensions/ServiceCollectionExtensionsTest.cs +++ b/Vonage.Test.Unit/Extensions/ServiceCollectionExtensionsTest.cs @@ -16,6 +16,7 @@ using Vonage.Redaction; using Vonage.Request; using Vonage.ShortCodes; +using Vonage.Users; using Vonage.Verify; using Vonage.VerifyV2; using Vonage.Voice; @@ -72,6 +73,7 @@ public static IEnumerable GetSpecificVonageClients() yield return new object[] {typeof(IRedactClient)}; yield return new object[] {typeof(IShortCodesClient)}; yield return new object[] {typeof(ISmsClient)}; + yield return new object[] {typeof(IUsersClient)}; yield return new object[] {typeof(IVerifyClient)}; yield return new object[] {typeof(IVerifyV2Client)}; yield return new object[] {typeof(IVoiceClient)}; diff --git a/Vonage/Extensions/ServiceCollectionExtensions.cs b/Vonage/Extensions/ServiceCollectionExtensions.cs index b365caa80..54ac257ce 100644 --- a/Vonage/Extensions/ServiceCollectionExtensions.cs +++ b/Vonage/Extensions/ServiceCollectionExtensions.cs @@ -30,6 +30,7 @@ public static IServiceCollection AddVonageClientScoped(this IServiceCollection s services.AddScoped(serviceProvider => serviceProvider.GetService().RedactClient); services.AddScoped(serviceProvider => serviceProvider.GetService().ShortCodesClient); services.AddScoped(serviceProvider => serviceProvider.GetService().SmsClient); + services.AddScoped(serviceProvider => serviceProvider.GetService().UsersClient); services.AddScoped(serviceProvider => serviceProvider.GetService().VerifyClient); services.AddScoped(serviceProvider => serviceProvider.GetService().VerifyV2Client); services.AddScoped(serviceProvider => serviceProvider.GetService().VoiceClient); @@ -58,6 +59,7 @@ public static IServiceCollection AddVonageClientTransient(this IServiceCollectio services.AddTransient(serviceProvider => serviceProvider.GetService().RedactClient); services.AddTransient(serviceProvider => serviceProvider.GetService().ShortCodesClient); services.AddTransient(serviceProvider => serviceProvider.GetService().SmsClient); + services.AddTransient(serviceProvider => serviceProvider.GetService().UsersClient); services.AddTransient(serviceProvider => serviceProvider.GetService().VerifyClient); services.AddTransient(serviceProvider => serviceProvider.GetService().VerifyV2Client); services.AddTransient(serviceProvider => serviceProvider.GetService().VoiceClient);