public void DisableCryptographyEndpoint_CryptographyEndpointIsDisabled() { // Arrange var services = CreateServices(); var builder = new OpenIddictBuilder(services); // Act builder.DisableCryptographyEndpoint(); var options = GetOptions(services); // Assert Assert.Equal(PathString.Empty, options.CryptographyEndpointPath); }
public void DisableCryptographyEndpoint_CryptographyEndpointIsDisabled() { // Arrange var services = new ServiceCollection(); services.AddOptions(); var builder = new OpenIddictBuilder(services); // Act builder.DisableCryptographyEndpoint(); var provider = services.BuildServiceProvider(); var options = provider.GetRequiredService <IOptions <OpenIddictOptions> >(); // Assert Assert.Equal(PathString.Empty, options.Value.CryptographyEndpointPath); }