using System; using Bit.Core.Repositories; using Bit.Core.Services; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Logging; using NSubstitute; using Xunit; namespace Bit.Core.Test.Services { public class LicensingServiceTests { private readonly LicensingService _sut; private readonly GlobalSettings _globalSettings; private readonly IUserRepository _userRepository; private readonly IOrganizationRepository _organizationRepository; private readonly IOrganizationUserRepository _organizationUserRepository; private readonly IMailService _mailService; private readonly IWebHostEnvironment _hostingEnvironment; private readonly ILogger _logger; public LicensingServiceTests() { _userRepository = Substitute.For(); _organizationRepository = Substitute.For(); _organizationUserRepository = Substitute.For(); _mailService = Substitute.For(); _hostingEnvironment = Substitute.For(); _logger = Substitute.For>(); _globalSettings = new GlobalSettings(); _sut = new LicensingService( _userRepository, _organizationRepository, _organizationUserRepository, _mailService, _hostingEnvironment, _logger, _globalSettings ); } // Remove this test when we add actual tests. It only proves that // we've properly constructed the system under test. [Fact(Skip = "Needs additional work")] public void ServiceExists() { Assert.NotNull(_sut); } } }