-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAddMockTiersRepository.cs
42 lines (35 loc) · 1.3 KB
/
AddMockTiersRepository.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System.Diagnostics.CodeAnalysis;
using Backbone.Modules.Quotas.Application.Infrastructure.Persistence.Repository;
using Backbone.Modules.Quotas.Domain.Aggregates.Tiers;
namespace Backbone.Modules.Quotas.Application.Tests.TestDoubles;
public class AddMockTiersRepository : ITiersRepository
{
[MemberNotNullWhen(true, nameof(WasCalledWith))]
public bool WasCalled => WasCalledWith != null;
public Tier? WasCalledWith { get; private set; }
public Task Add(Tier tier, CancellationToken cancellationToken)
{
WasCalledWith = tier;
return Task.CompletedTask;
}
public Task<Tier?> Find(string id, CancellationToken cancellationToken, bool track = false)
{
throw new NotImplementedException();
}
public Task<TierQuotaDefinition> FindTierQuotaDefinition(string id, CancellationToken cancellationToken, bool track = false)
{
throw new NotImplementedException();
}
public Task RemoveById(TierId tierId)
{
throw new NotImplementedException();
}
public Task RemoveTierQuotaDefinitionIfOrphaned(TierQuotaDefinitionId tierQuotaDefinitionId)
{
throw new NotImplementedException();
}
public Task Update(Tier tier, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
}