﻿using DataComparer.Domain.Entities;

namespace DataComparer.Domain.Repositories
{
    /// <summary>
    /// Represents a repository for persisting <see cref="DataComparer.Domain.Entities.DataComparisonItem"/>.
    /// </summary>
    public interface IDataComparisonRepository
    {
        /// <summary>
        /// Gets the instance of <see cref="DataComparer.Domain.Entities.DataComparisonItem"/>.
        /// <param name="id">A comparison id.</param>
        /// </summary>
        DataComparisonItem Get(string id);

        /// <summary>
        /// Saves the specified instance of <see cref="DataComparer.Domain.Entities.DataComparisonItem"/>.
        /// </summary>
        /// <param name="id">A comparison id.</param>
        /// <param name="comparisonItem">A comparison item.</param>
        void Save(string id, DataComparisonItem comparisonItem);
    }
}
