Skip to content

Commit

Permalink
Fixed spellings.
Browse files Browse the repository at this point in the history
  • Loading branch information
artempushkin committed Oct 19, 2023
1 parent 14dd12d commit 7048507
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/Activities.UnitTests/ServiceCollectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void AddOmexActivitySource_TypesRegistered(Type typeToResolve, Type imple
}

[TestMethod]
public void AddOmexActivitySource_HostedServicesRegiestered()
public void AddOmexActivitySource_HostedServicesRegistered()
{
Type[] types = GetRegisteredServices<IHostedService>();

Expand All @@ -47,7 +47,7 @@ public void AddOmexActivitySource_ActivityCreationEnabled()
Task task = CreateHost().RunAsync();

Activity? activity = new ActivitySource("Source")
.StartActivity(nameof(AddOmexActivitySource_HostedServicesRegiestered));
.StartActivity(nameof(AddOmexActivitySource_HostedServicesRegistered));

NullableAssert.IsNotNull(activity, "Activity creation enabled after host started");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ public class HostBuilderExtensionsTests
[DataRow(typeof(IExecutionContext), typeof(ServiceFabricExecutionContext))]
[DataRow(typeof(ActivitySource), null)]
[DataRow(typeof(ILogger<HostBuilderExtensionsTests>), null)]
public void AddOmexServiceFabricDependencies_TypesRegistered(Type typeToResolver, Type? expectedImplementationType)
public void AddOmexServiceFabricDependencies_TypesRegistered(Type typeToResolve, Type? expectedImplementationType)
{
void CheckTypeRegistration<TContext>() where TContext : ServiceContext
{
object? obj = new ServiceCollection()
.AddOmexServiceFabricDependencies<TContext>()
.AddSingleton(new Mock<IHostEnvironment>().Object)
.BuildServiceProvider()
.GetService(typeToResolver);
.GetService(typeToResolve);

Assert.IsNotNull(obj, "Failed to resolve for {0}", typeof(TContext));

Expand Down

0 comments on commit 7048507

Please sign in to comment.