using System.Threading;
using System.Threading.Tasks;
using Knot.Contracts.Profiles.Domain;
using Knot.Shared.Kernel;

namespace Knot.Modules.Profiles.Infrastructure.Database;

internal class ProfilesUnitOfWork : IProfilesUnitOfWork
{
    public IProfileRepository ProfileRepository { get; }

    public ProfilesUnitOfWork(IProfileRepository profileRepository)
    {
        ProfileRepository = profileRepository;
    }

    public Task<int> SaveChangesAsync(CancellationToken ct = default) => Task.FromResult(1);
}
