Skip to content

Commit 3704694

Browse files
committed
Unused "using" directive; made two methods static.
1 parent 224ed2a commit 3704694

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

test/EntityFrameworkCore.DataEncryption.Test/Migration/MigratorBaseTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Linq;
44
using System.Threading.Tasks;
55
using Bogus;
6-
using Microsoft.EntityFrameworkCore.DataEncryption;
76
using Microsoft.EntityFrameworkCore.DataEncryption.Migration;
87
using Microsoft.EntityFrameworkCore.DataEncryption.Test.Context;
98
using Xunit;
@@ -24,7 +23,7 @@ protected MigratorBaseTest()
2423
}).ToList();
2524
}
2625

27-
private void AssertAuthor(AuthorEntity expected, AuthorEntity actual)
26+
private static void AssertAuthor(AuthorEntity expected, AuthorEntity actual)
2827
{
2928
Assert.NotNull(actual);
3029
Assert.Equal(expected.FirstName, actual.FirstName);

test/EntityFrameworkCore.DataEncryption.Test/Migration/V1ToV2MigratorTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public class V1ToV2MigratorTest : MigratorBaseTest
1111
[Fact]
1212
public async Task MigrateV1ToV2Test()
1313
{
14-
string databaseName = $"{Guid.NewGuid()}.db";
1514
var aesKeys = AesProvider.GenerateKey(AesKeySize.AES256Bits);
1615
var sourceProvider = new AesProvider(aesKeys.Key, aesKeys.IV);
1716
var destinationProvider = new AesProvider(aesKeys.Key);

test/EntityFrameworkCore.DataEncryption.Test/Providers/AesProviderTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void EncryptUsingAes256Provider()
9292
ExecuteAesEncryptionTest<Aes256EncryptedDatabaseContext>(AesKeySize.AES256Bits);
9393
}
9494

95-
private void ExecuteAesEncryptionTest<TContext>(AesKeySize aesKeyType) where TContext : DatabaseContext
95+
private static void ExecuteAesEncryptionTest<TContext>(AesKeySize aesKeyType) where TContext : DatabaseContext
9696
{
9797
AesKeyInfo encryptionKeyInfo = AesProvider.GenerateKey(aesKeyType);
9898
var provider = new AesProvider(encryptionKeyInfo.Key, CipherMode.CBC, PaddingMode.Zeros);

0 commit comments

Comments
 (0)