public async void Should_merge_the_entities() { // Arrange const string partitionKey = "MergeAsync"; const string rowKey = "MyKey"; const string expectedSomePropValue = "SomeFinalValue"; const string expectedSomeOtherPropValue = "SomeOtherValue"; await SomeOtherTestEntityRepository.InsertOrReplaceAsync(new SomeOtherTestEntity { PartitionKey = partitionKey, RowKey = rowKey, ETag = "*", SomeOtherProp = expectedSomeOtherPropValue }); // Act var result = await RepositoryUnderTest.MergeAsync(new SomeTestEntity { PartitionKey = partitionKey, RowKey = rowKey, ETag = "*", SomeProp = expectedSomePropValue }); // Assert var entity1 = await RepositoryUnderTest.ReadOneAsync(partitionKey, rowKey); var entity2 = await SomeOtherTestEntityRepository.ReadOneAsync(partitionKey, rowKey); Assert.NotNull(entity1); Assert.NotNull(entity2); Assert.Equal(expectedSomePropValue, entity1.SomeProp); Assert.Equal(expectedSomeOtherPropValue, entity2.SomeOtherProp); }