From 9e9ff7831695563526f5ed7f420e41cb7ebe38e0 Mon Sep 17 00:00:00 2001 From: danielmarbach Date: Fri, 20 Nov 2020 14:21:26 +0100 Subject: [PATCH] Rename and cleanup TestableAzureTableStorageSession --- ...torageSession.cs => TestableAzureTableStorageSession.cs} | 6 +++--- .../APIApprovals.ApproveAzureTablePersistence.approved.txt | 4 ++-- ...ionTests.cs => TestableAzureTableStorageSessionTests.cs} | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) rename src/NServiceBus.Persistence.AzureTable/Testing/{TestableAzureTableStorageStorageSession.cs => TestableAzureTableStorageSession.cs} (77%) rename src/Tests/SynchronizedStorage/{TestableAzureStorageStorageSessionTests.cs => TestableAzureTableStorageSessionTests.cs} (93%) diff --git a/src/NServiceBus.Persistence.AzureTable/Testing/TestableAzureTableStorageStorageSession.cs b/src/NServiceBus.Persistence.AzureTable/Testing/TestableAzureTableStorageSession.cs similarity index 77% rename from src/NServiceBus.Persistence.AzureTable/Testing/TestableAzureTableStorageStorageSession.cs rename to src/NServiceBus.Persistence.AzureTable/Testing/TestableAzureTableStorageSession.cs index 3827c4d4..4718e479 100644 --- a/src/NServiceBus.Persistence.AzureTable/Testing/TestableAzureTableStorageStorageSession.cs +++ b/src/NServiceBus.Persistence.AzureTable/Testing/TestableAzureTableStorageSession.cs @@ -8,12 +8,12 @@ /// /// A fake implementation for for testing purposes. /// - public class TestableAzureTableStorageStorageSession : SynchronizedStorageSession, IWorkWithSharedTransactionalBatch + public class TestableAzureTableStorageSession : SynchronizedStorageSession, IWorkWithSharedTransactionalBatch { /// - /// Initializes a new TestableCosmosSynchronizedStorageSession with a partition key. + /// Initializes a new TestableAzureTableStorageSession with a partition key. /// - public TestableAzureTableStorageStorageSession(TableEntityPartitionKey partitionKey) + public TestableAzureTableStorageSession(TableEntityPartitionKey partitionKey) { var contextBag = new ContextBag(); contextBag.Set(partitionKey); diff --git a/src/Tests/ApprovalFiles/APIApprovals.ApproveAzureTablePersistence.approved.txt b/src/Tests/ApprovalFiles/APIApprovals.ApproveAzureTablePersistence.approved.txt index 8286373f..88d79029 100644 --- a/src/Tests/ApprovalFiles/APIApprovals.ApproveAzureTablePersistence.approved.txt +++ b/src/Tests/ApprovalFiles/APIApprovals.ApproveAzureTablePersistence.approved.txt @@ -158,9 +158,9 @@ namespace NServiceBus.Persistence.AzureTable } namespace NServiceBus.Testing { - public class TestableAzureTableStorageStorageSession : NServiceBus.Persistence.AzureTable.IAzureTableStorageSession, NServiceBus.Persistence.SynchronizedStorageSession + public class TestableAzureTableStorageSession : NServiceBus.Persistence.AzureTable.IAzureTableStorageSession, NServiceBus.Persistence.SynchronizedStorageSession { - public TestableAzureTableStorageStorageSession(NServiceBus.TableEntityPartitionKey partitionKey) { } + public TestableAzureTableStorageSession(NServiceBus.TableEntityPartitionKey partitionKey) { } public Microsoft.Azure.Cosmos.Table.TableBatchOperation Batch { get; set; } public string PartitionKey { get; } public Microsoft.Azure.Cosmos.Table.CloudTable Table { get; set; } diff --git a/src/Tests/SynchronizedStorage/TestableAzureStorageStorageSessionTests.cs b/src/Tests/SynchronizedStorage/TestableAzureTableStorageSessionTests.cs similarity index 93% rename from src/Tests/SynchronizedStorage/TestableAzureStorageStorageSessionTests.cs rename to src/Tests/SynchronizedStorage/TestableAzureTableStorageSessionTests.cs index 9a675212..d1a93f96 100644 --- a/src/Tests/SynchronizedStorage/TestableAzureStorageStorageSessionTests.cs +++ b/src/Tests/SynchronizedStorage/TestableAzureTableStorageSessionTests.cs @@ -7,14 +7,14 @@ using Microsoft.Azure.Cosmos.Table; [TestFixture] - public class TestableAzureStorageStorageSessionTests + public class TestableAzureTableStorageSessionTests { [Test] public async Task CanBeUsed() { var transactionalBatch = new TableBatchOperation(); - var testableSession = new TestableAzureTableStorageStorageSession(new TableEntityPartitionKey("mypartitionkey")) + var testableSession = new TestableAzureTableStorageSession(new TableEntityPartitionKey("mypartitionkey")) { Batch = transactionalBatch };