public void TestGetTableName_ExpectTestTableName()
        {
            var entity    = new MockTable();
            var tableName = entity.GetTableName();

            Assert.Equal("TestTableName", tableName);
        }
        public void TestGetKey_ExpectKeyDictionary()
        {
            var entity = new MockTable();

            entity.PopulateProperties();

            var keyDictionary = entity.GetKey();

            Assert.True(keyDictionary.Count == 1);
            Assert.Equal(entity.Id, int.Parse(keyDictionary["Id"].N));
        }
        public void TestExpressionAttributes_ExpectDictionary()
        {
            var entity = new MockTable();

            var dictionary = entity.GetExpressionAttributes();

            Assert.Equal(3, dictionary.Count);
            Assert.True(dictionary.ContainsKey("#id"));
            Assert.True(dictionary.ContainsKey("#property1"));
            Assert.True(dictionary.ContainsKey("#property2"));
            Assert.False(dictionary.ContainsKey("#property3"));
        }
        public void TestMappingToAttributeValueDictionary_ExpectKeyDictionaryWithSameValues()
        {
            var entity = new MockTable();

            entity.PopulateProperties();

            var valueDictionary = entity.Map();

            Assert.True(valueDictionary.Count == 2);
            Assert.Equal(entity.Property1, valueDictionary["Property1"].S);
            Assert.Equal(entity.Property2, valueDictionary["Property2"].BOOL);
            Assert.True(!valueDictionary.ContainsKey("Id"));
        }