Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Sindo committed Oct 30, 2020
1 parent 0fbdbd0 commit 7c4dbf7
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void ProductInfoDefaultValueNotNullFact()
}

[Fact]
public void ConfigureByDelegateFact_Method1()
public void ConfigureByDelegateFact()
{
ServiceCollection services = new ServiceCollection();
services.AddSignalRServiceManager(o =>
Expand All @@ -88,18 +88,5 @@ public void ConfigureByDelegateFact_Method1()
Assert.Equal(Url, optionsMonitor.CurrentValue.ServiceEndpoints.Single().Endpoint);
Assert.Equal(ServiceTransportType.Persistent, optionsMonitor.CurrentValue.ServiceTransportType);
}

[Fact]
public void ConfigureByDelegateFact_Method2()
{
ServiceCollection services = new ServiceCollection();
services.Configure<ServiceManagerOptions>(o => o.ConnectionString = TestConnectionString);
services.Configure<ServiceManagerOptions>(o => o.ServiceTransportType = ServiceTransportType.Persistent);
services.AddSignalRServiceManagerCore();
using var serviceProvider = services.BuildServiceProvider();
var optionsMonitor = serviceProvider.GetRequiredService<IOptionsMonitor<ServiceManagerContext>>();
Assert.Equal(Url, optionsMonitor.CurrentValue.ServiceEndpoints.Single().Endpoint);
Assert.Equal(ServiceTransportType.Persistent, optionsMonitor.CurrentValue.ServiceTransportType);
}
}
}

0 comments on commit 7c4dbf7

Please sign in to comment.