public async void Should_replace_an_entity() { // Arrange const string partitionKey = "ReplaceAsync"; const string rowKey = "MyKey"; const string expectedValue = "SomeOtherValue"; await RepositoryUnderTest.InsertOrReplaceAsync(new SomeTestEntity { PartitionKey = partitionKey, RowKey = rowKey, ETag = "*", SomeProp = "SomeValue" }); // Act var result = await RepositoryUnderTest.ReplaceAsync(new SomeTestEntity { PartitionKey = partitionKey, RowKey = rowKey, ETag = "*", SomeProp = expectedValue }); // Assert Assert.NotNull(result); var entity = await RepositoryUnderTest.ReadOneAsync(partitionKey, rowKey); Assert.Equal(expectedValue, entity.SomeProp); }