diff --git a/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Applications/Startup.cs b/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Applications/Startup.cs index 037441c..9c2da8f 100644 --- a/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Applications/Startup.cs +++ b/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Applications/Startup.cs @@ -38,6 +38,7 @@ public virtual IServiceCollection ConfigureServices(IServiceCollection services, services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); + services.AddSingleton(); services.AddSingleton(); services.AddTransient(); diff --git a/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Utilities/ActionRetrierTests.cs b/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Utilities/ActionRetrierTests.cs index cb11cb1..9638b89 100644 --- a/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Utilities/ActionRetrierTests.cs +++ b/Aquality.Selenium.Core/tests/Aquality.Selenium.Core.Tests/Utilities/ActionRetrierTests.cs @@ -1,4 +1,6 @@ -using Aquality.Selenium.Core.Utilities; +using Aquality.Selenium.Core.Tests.Applications.Browser; +using Aquality.Selenium.Core.Utilities; +using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; using System; using System.Collections.Generic; @@ -11,6 +13,12 @@ public class ActionRetrierTests : RetrierTests private IActionRetrier ActionRetrier => new ActionRetrier(RetryConfiguration); + [Test] + public void Retrier_ShouldBePossible_ToGetFromAqualitySrvices() + { + Assert.DoesNotThrow(() => AqualityServices.ServiceProvider.GetRequiredService()); + } + [Test] public void Retrier_ShouldWork_OnceIfMethodSucceeded() {