Skip to content

Commit 995f801

Browse files
committed
Rename ISubscriber service and implementation to IRegistrar.
Registar is a better metaphor for a construct responsible for enrollment or subscribing. And since there is already a Subscriber model, this elminates the conflict.
1 parent 0a3a7d9 commit 995f801

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/Core/Application/Services/ISubscriber.cs renamed to src/Core/Application/Services/IRegistrar.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ namespace CompanyName.Notebook.NoteTaking.Core.Application.Services
33
using System;
44
using CompanyName.Notebook.NoteTaking.Core.Application.Messages;
55

6-
public interface ISubscriber
6+
public interface IRegistrar
77
{
88
SubscriberDto Subscribe(string emailAddress);
9+
SubscriberDto Subscribe(Guid categoryId, string emailAddress);
910
void Unsubscribe(Guid subscriberId);
11+
void Unsubscribe(Guid categoryId, Guid subscriberId);
1012
}
1113
}
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,26 @@ namespace CompanyName.Notebook.NoteTaking.Infrastructure.Server
44
using CompanyName.Notebook.NoteTaking.Core.Application.Messages;
55
using CompanyName.Notebook.NoteTaking.Core.Application.Services;
66

7-
public class Subscriber : ISubscriber
7+
public class Registrar : IRegistrar
88
{
99
public SubscriberDto Subscribe(string emailAddress)
1010
{
1111
throw new NotImplementedException();
1212
}
1313

14+
public SubscriberDto Subscribe(Guid categoryId, string emailAddress)
15+
{
16+
throw new NotImplementedException();
17+
}
18+
1419
public void Unsubscribe(Guid subscriberId)
1520
{
1621
throw new NotImplementedException();
1722
}
23+
24+
public void Unsubscribe(Guid categoryId, Guid subscriberId)
25+
{
26+
throw new NotImplementedException();
27+
}
1828
}
1929
}

0 commit comments

Comments
 (0)