Exemplo n.º 1
0
        private void TestLoadLatestWithSingleRecord()
        {
            Option <JObject> actualJsonObject = dynamoDbMetastoreImpl.LoadLatest(TestKey);

            Assert.True(actualJsonObject.IsSome);
            Assert.True(JToken.DeepEquals(JObject.FromObject(keyRecord), (JObject)actualJsonObject));
        }
        private void TestLoadLatestWithSingleRecordAndSuffix()
        {
            DynamoDbMetastoreImpl dbMetastoreImpl = NewBuilder(Region)
                                                    .WithEndPointConfiguration("http://localhost:" + DynamoDbPort, Region)
                                                    .WithKeySuffix()
                                                    .Build();

            Option <JObject> actualJsonObject = dbMetastoreImpl.LoadLatest(TestKey);

            Assert.True(actualJsonObject.IsSome);
            Assert.True(JToken.DeepEquals(JObject.FromObject(keyRecord), (JObject)actualJsonObject));
        }