Skip to content

Commit

Permalink
Merge pull request #347 from Particular/testable-name-back
Browse files Browse the repository at this point in the history
Rename and cleanup TestableAzureTableStorageSession
  • Loading branch information
danielmarbach authored Nov 20, 2020
2 parents 3d6dd83 + 9e9ff78 commit ced96c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
/// <summary>
/// A fake implementation for <see cref="SynchronizedStorageSession"/> for testing purposes.
/// </summary>
public class TestableAzureTableStorageStorageSession : SynchronizedStorageSession, IWorkWithSharedTransactionalBatch
public class TestableAzureTableStorageSession : SynchronizedStorageSession, IWorkWithSharedTransactionalBatch
{
/// <summary>
/// Initializes a new TestableCosmosSynchronizedStorageSession with a partition key.
/// Initializes a new TestableAzureTableStorageSession with a partition key.
/// </summary>
public TestableAzureTableStorageStorageSession(TableEntityPartitionKey partitionKey)
public TestableAzureTableStorageSession(TableEntityPartitionKey partitionKey)
{
var contextBag = new ContextBag();
contextBag.Set(partitionKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit ced96c2

Please sign in to comment.