public void Test_Update_EntityNotFoundException()
        {
            // Create the entity
            var entity = new SimpleEntity ();

            var data = GetDataManager ();

            // Call the Update function which should throw an exception because it hasn't been saved yet
            data.Updater.Update(entity);
        }
        public void Test_Save_EntityAlreadyExistsException()
        {
            // Create the entity
            var entity = new SimpleEntity ();

            var data = GetDataManager ();

            // Save the entity
            data.Save (entity);

            // Call the Save function again which should throw an exception
            data.Save(entity);
        }
        public void Test_Save()
        {
            Console.WriteLine ("Preparing test");

            // Create the entity
            var entity = new SimpleEntity ();

            Console.WriteLine ("Executing test");

            var data = GetDataManager ();

            // Save the entity
            data.Save (entity);
        }