Контракты
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
using System.Threading;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Knot.Modules.Profiles.Domain;
|
||||
using Knot.Modules.Profiles.Contracts.Domain;
|
||||
using Knot.Shared.Kernel;
|
||||
|
||||
namespace Knot.Modules.Profiles.Infrastructure.Database;
|
||||
|
||||
public class ProfilesUnitOfWork : IProfilesUnitOfWork
|
||||
internal class ProfilesUnitOfWork : IProfilesUnitOfWork
|
||||
{
|
||||
public Task SaveChangesAsync(CancellationToken ct = default) => Task.CompletedTask;
|
||||
public IProfileRepository ProfileRepository { get; }
|
||||
|
||||
public ProfilesUnitOfWork(IProfileRepository profileRepository)
|
||||
{
|
||||
ProfileRepository = profileRepository;
|
||||
}
|
||||
|
||||
public Task<int> SaveChangesAsync(CancellationToken ct = default) => Task.FromResult(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user