using AutoFixture; using Bit.Core.Services; using Bit.Test.Common.AutoFixture; using Microsoft.Extensions.Logging; using NSubstitute; using Xunit; using GlobalSettingsCustomization = Bit.Test.Common.AutoFixture.GlobalSettings; namespace Bit.Core.Test.Services; public class MultiServicePushNotificationServiceTests { private readonly MultiServicePushNotificationService _sut; private readonly ILogger _logger; private readonly ILogger _relayLogger; private readonly ILogger _hubLogger; private readonly IEnumerable _services; private readonly Settings.GlobalSettings _globalSettings; public MultiServicePushNotificationServiceTests() { _logger = Substitute.For>(); _relayLogger = Substitute.For>(); _hubLogger = Substitute.For>(); var fixture = new Fixture().WithAutoNSubstitutions().Customize(new GlobalSettingsCustomization()); _services = fixture.CreateMany(); _globalSettings = fixture.Create(); _sut = new MultiServicePushNotificationService( _services, _logger, _globalSettings ); } // Remove this test when we add actual tests. It only proves that // we've properly constructed the system under test. [Fact] public void ServiceExists() { Assert.NotNull(_sut); } }