public void Test_TransformSingleItem()
        {
            var inp  = MakeFakeEntity();
            var outp = Mapper.Transform(inp);

            Assert.AreEqual(ENTITY_ID, outp.EntityId);
            Assert.AreEqual(ITEM_ID, outp.Id);
            Assert.AreEqual(TAG, outp.Tag);
            Assert.That(outp, Is.TypeOf(typeof(FavoritesTableEntity)));
        }
 public Task AddAsync(FavoriteItem model) => Task.Run(() =>
 {
     var item = FavoritesTableEntityDataMapper.Transform(model);
     var con  = Database.GetConnectionInstance();
     lock (con)
     {
         try
         {
             con.BeginTransaction();
             con.Insert(item);
         }
         catch (Exception e) { throw e; }
         finally { con.Commit(); }
     }
 });