public async Task CreateItemWith2Property1DekEncr() { TestDoc testDoc = TestDoc.Create(); ItemResponse <TestDoc> createResponse = await EncryptionContainerTests.twoPropertyOneDekEncryptionContainer.CreateItemAsync( testDoc, new PartitionKey(testDoc.PK)); await EncryptionContainerTests.VerifyItemByReadAsync(EncryptionContainerTests.twoPropertyOneDekEncryptionContainer, testDoc); await EncryptionContainerTests.VerifyItemByReadStreamAsync(EncryptionContainerTests.twoPropertyOneDekEncryptionContainer, testDoc); }
public async Task CreateStreamItemWithPropertyEncr() { TestDoc testDoc = TestDoc.Create(); Stream testStream = testDoc.ToStream(); await EncryptionContainerTests.propertyEncryptionContainer.CreateItemStreamAsync( testStream, new PartitionKey(testDoc.PK)); await EncryptionContainerTests.VerifyItemByReadAsync(EncryptionContainerTests.propertyEncryptionContainer, testDoc); await EncryptionContainerTests.VerifyItemByReadStreamAsync(EncryptionContainerTests.propertyEncryptionContainer, testDoc); }
public async Task CreateItemWithPropertyEncr() { TestDoc testDoc = TestDoc.Create(); ItemResponse <TestDoc> createResponse = await EncryptionContainerTests.propertyEncryptionContainer.CreateItemAsync( testDoc, new PartitionKey(testDoc.PK)); await EncryptionContainerTests.VerifyItemByReadAsync(EncryptionContainerTests.propertyEncryptionContainer, testDoc); await EncryptionContainerTests.VerifyItemByReadStreamAsync(EncryptionContainerTests.propertyEncryptionContainer, testDoc); Assert.AreNotEqual(createResponse.Resource.Name, testDoc.Name); }