private static void NamedPropertyModelDecodeTest_Run(IDbContext context, ref Expr lastQuery)
        {
            var model = new NamedPropertyModel
            {
                TestString = "test123"
            };

            var result = context.Get <NamedPropertyModel>("asdf").Result;

            Assert.Equal(model, result);
        }
        private void NamedPropertyModelEncodeTest_Run(IDbContext context, ref Expr lastQuery)
        {
            var model = new NamedPropertyModel
            {
                TestString = "test123"
            };

            var dict = new Dictionary <string, object>
            {
                { "not_a_test_string", "test123" }
            };

            var manual    = Obj(dict);
            var automatic = context.ToFaunaObj(model);

            Assert.Equal(JsonConvert.SerializeObject(manual), JsonConvert.SerializeObject(automatic));
        }
 protected bool Equals(NamedPropertyModel other)
 {
     return(string.Equals(Id, other.Id) && string.Equals(TestString, other.TestString));
 }