/**
 * @file test_persistence.cpp
 * @brief Unit tests for Persistence component
 * @author Mahmoud Elmohtady
 * @company Nabd solutions - ASF
 * @copyright Copyright (c) 2025
 */

#include "unity.h"
#include "persistence.hpp"

extern "C" {

void setUp(void)
{
}

void tearDown(void)
{
}

void test_persistence_initialize(void)
{
    Persistence comp;
    bool result = comp.initialize();
    TEST_ASSERT_TRUE(result);
    TEST_ASSERT_TRUE(comp.isInitialized());
}

void test_persistence_deinitialize(void)
{
    Persistence comp;
    comp.initialize();
    
    bool result = comp.deinitialize();
    TEST_ASSERT_TRUE(result);
    TEST_ASSERT_FALSE(comp.isInitialized());
}

} // extern "C"
