// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Xunit; namespace Microsoft.AspNetCore.SignalR.Tests { public class SignalRDependencyInjectionExtensionsTests { [Fact] public void JSonSerializerSettingsShouldNotBeNullInOptions() { var services = new ServiceCollection(); services.AddOptions(); services.AddSignalR(); var serviceProvider = services.BuildServiceProvider(); var hubOptions = serviceProvider.GetService>(); Assert.NotNull(hubOptions.Value.JsonSerializerSettings); } } }