using Bit.Core.Auth.Enums; using Bit.Core.Auth.Identity; using Bit.Core.Entities; using Bit.Test.Common.AutoFixture; using Bit.Test.Common.AutoFixture.Attributes; using Xunit; namespace Bit.Core.Test.Auth.Identity; public class AuthenticationTokenProviderTests : BaseTokenProviderTests { public override TwoFactorProviderType TwoFactorProviderType => TwoFactorProviderType.Authenticator; public static IEnumerable CanGenerateTwoFactorTokenAsyncData => SetupCanGenerateData( ( new Dictionary { ["Key"] = "stuff", }, true ), ( new Dictionary { ["Key"] = "" }, false ) ); [Theory, BitMemberAutoData(nameof(CanGenerateTwoFactorTokenAsyncData))] public override async Task RunCanGenerateTwoFactorTokenAsync(Dictionary metaData, bool expectedResponse, User user, SutProvider sutProvider) { await base.RunCanGenerateTwoFactorTokenAsync(metaData, expectedResponse, user, sutProvider); } }