Skip to content

Commit

Permalink
next try
Browse files Browse the repository at this point in the history
  • Loading branch information
romankr committed Dec 9, 2023
1 parent d016387 commit 031a7a9
Show file tree
Hide file tree
Showing 37 changed files with 299 additions and 334 deletions.
58 changes: 0 additions & 58 deletions OddsCollector.Functions.Tests/CosmosDb/ContainerFactoryTests.cs

This file was deleted.

17 changes: 0 additions & 17 deletions OddsCollector.Functions.Tests/CosmosDb/CosmosDbClientTests.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,30 @@ public void AddOddsApiClientWithDependencies_AddsProperlyConfiguredOddsApiClient
var options =
services.FirstOrDefault(
x => x.ServiceType == typeof(IConfigureOptions<OddsApiClientOptions>)
&& x.Lifetime == ServiceLifetime.Singleton);
&& x.Lifetime == ServiceLifetime.Singleton);

options.Should().NotBeNull();

var httpClient =
services.FirstOrDefault(
x => x.ServiceType == typeof(HttpClient)
&& x.Lifetime == ServiceLifetime.Transient);
&& x.Lifetime == ServiceLifetime.Transient);

httpClient.Should().NotBeNull();

var client =
services.FirstOrDefault(
x => x.ImplementationType == typeof(Client)
&& x.ServiceType == typeof(IClient)
&& x.Lifetime == ServiceLifetime.Singleton);
&& x.ServiceType == typeof(IClient)
&& x.Lifetime == ServiceLifetime.Singleton);

client.Should().NotBeNull();

var oddsApiClient =
services.FirstOrDefault(
x => x.ImplementationType == typeof(OddsApiClient)
&& x.ServiceType == typeof(IOddsApiClient)
&& x.Lifetime == ServiceLifetime.Singleton);
&& x.ServiceType == typeof(IOddsApiClient)
&& x.Lifetime == ServiceLifetime.Singleton);

oddsApiClient.Should().NotBeNull();
}
Expand Down
Loading

0 comments on commit 031a7a9

Please sign in to comment.