public void Can_write_complex_record()
        {
            var complexRecord = new ComplexRecord();

            _testMongoDbContext.Add(complexRecord);
            _testMongoDbContext.SaveChanges(acceptAllChangesOnSuccess: true);
            Assert.Equal(complexRecord, _testMongoDbContext.ComplexRecords.Single());
        }
Exemplo n.º 2
0
        public async Task GetAsync_ComplexRecord_FullRecord()
        {
            // ARRANGE
            var ts = await TestState.GetAsync();

            await ts.ComplexRecordAzureTable.SetAsync(ts.PartitionKey, ts.RowKey, ts.ComplexRecordValue);

            // ACT
            ComplexRecord actualValue = await ts.ComplexRecordAzureTable.GetAsync(ts.PartitionKey, ts.RowKey);

            // ASSERT
            actualValue.ShouldBeEquivalentTo(ts.ComplexRecordValue);
        }