Skip to content

Commit ec17403

Browse files
committed
- Checkpoint: Refactor Type Accessibility
1 parent 074fdce commit ec17403

21 files changed

+43
-43
lines changed

src/SourceFlow.ConsoleApp/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
var accountService = serviceProvider.GetRequiredService<IAccountService>();
3030
var saga = serviceProvider.GetRequiredService<ISaga>();
3131
var logger = serviceProvider.GetRequiredService<ILogger<Program>>();
32-
var accountFinder = serviceProvider.GetRequiredService<IViewModelFinder>();
32+
var accountFinder = serviceProvider.GetRequiredService<IViewFinder>();
3333

3434
// Create account
3535
var accountId = await accountService.CreateAccountAsync("John Doe", 1000m);

src/SourceFlow.ConsoleApp/Services/AccountViewFinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SourceFlow.ConsoleApp.Services
44
{
5-
public class AccountViewFinder : BaseViewModelFinder, IAccountFinder
5+
public class AccountViewFinder : BaseViewFinder, IAccountFinder
66
{
77
public AccountViewFinder(IViewModelRepository repository) : base(repository)
88
{

src/SourceFlow.ConsoleApp/ViewModels/AccountViewTransforms.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace SourceFlow.ConsoleApp.ViewModels
44
{
5-
public class AccountViewTransforms : IViewModelTransform<AccountCreated>
6-
, IViewModelTransform<MoneyDeposited>
7-
, IViewModelTransform<MoneyWithdrawn>
8-
, IViewModelTransform<AccountClosed>
5+
public class AccountViewTransforms : IViewTransform<AccountCreated>
6+
, IViewTransform<MoneyDeposited>
7+
, IViewTransform<MoneyWithdrawn>
8+
, IViewTransform<AccountClosed>
99
{
1010
private readonly IViewModelRepository repository;
1111

src/SourceFlow/AggregateFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace SourceFlow
77
/// <summary>
88
/// Factory for creating aggregate roots in the event-driven architecture.
99
/// </summary>
10-
public class AggregateFactory : IAggregateFactory
10+
internal class AggregateFactory : IAggregateFactory
1111
{
1212
/// <summary>
1313
/// Service provider for resolving dependencies.

src/SourceFlow/BaseViewModelFinder.cs renamed to src/SourceFlow/BaseViewFinder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ namespace SourceFlow
66
/// <summary>
77
/// Base class for implementing finders to retrieve view models by fetch criteria.
88
/// </summary>
9-
public abstract class BaseViewModelFinder : IViewModelFinder
9+
public abstract class BaseViewFinder : IViewFinder
1010
{
1111
/// <summary>
1212
/// Repository for managing view models.
1313
/// </summary>
1414
protected readonly IViewModelRepository repository;
1515

1616
/// <summary>
17-
/// Initializes a new instance of the <see cref="BaseViewModelFinder"/> class.
17+
/// Initializes a new instance of the <see cref="BaseViewFinder"/> class.
1818
/// </summary>
1919
/// <param name="repository"></param>
2020
/// <exception cref="ArgumentNullException"></exception>
21-
protected BaseViewModelFinder(IViewModelRepository repository)
21+
protected BaseViewFinder(IViewModelRepository repository)
2222
{
2323
this.repository = repository ?? throw new ArgumentNullException(nameof(repository));
2424
}

src/SourceFlow/BaseViewModelTransform.cs renamed to src/SourceFlow/BaseViewTransform.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace SourceFlow
66
/// Base class for implementing event transform for ETL processing.
77
/// </summary>
88
/// <typeparam name="TEvent"></typeparam>
9-
public abstract class BaseViewModelTransform<TEvent> : IViewModelTransform<TEvent>
9+
public abstract class BaseViewTransform<TEvent> : IViewTransform<TEvent>
1010
where TEvent : IEvent
1111
{
1212
/// <summary>

src/SourceFlow/BusPublisher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace SourceFlow
55
/// <summary>
66
/// Implementation of the IBusPublisher interface for publishing events to subscribers.
77
/// </summary>
8-
public class BusPublisher : IBusPublisher
8+
internal class BusPublisher : IBusPublisher
99
{
1010
/// <summary>
1111
/// The command bus used to publish events.

src/SourceFlow/BusSubscriber.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace SourceFlow
33
/// <summary>
44
/// Implementation of the IBusSubscriber interface for subscribing sagas to the command bus.
55
/// </summary>
6-
public class BusSubscriber : IBusSubscriber
6+
internal class BusSubscriber : IBusSubscriber
77
{
88
/// <summary>
99
/// The command bus used to register sagas.

src/SourceFlow/ClassDiagram.cd

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
</TypeIdentifier>
9494
<Lollipop Position="0.2" />
9595
</Class>
96-
<Class Name="SourceFlow.BaseViewModelTransform&lt;TEvent&gt;">
96+
<Class Name="SourceFlow.BaseViewTransform&lt;TEvent&gt;">
9797
<Position X="3.75" Y="11.25" Width="2.5" />
9898
<AssociationLine Name="ViewModelRepository" Type="SourceFlow.IViewModelRepository" ManuallyRouted="true" FixedFromPoint="true" FixedToPoint="true">
9999
<Path>
@@ -107,7 +107,7 @@
107107
</AssociationLine>
108108
<TypeIdentifier>
109109
<HashCode>AAAAAAIAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=</HashCode>
110-
<FileName>BaseViewModelTransform.cs</FileName>
110+
<FileName>BaseViewTransform.cs</FileName>
111111
</TypeIdentifier>
112112
<ShowAsAssociation>
113113
<Property Name="ViewModelRepository" />
@@ -124,11 +124,11 @@
124124
<Property Name="Handler" />
125125
</ShowAsAssociation>
126126
</Class>
127-
<Class Name="SourceFlow.BaseViewModelFinder">
127+
<Class Name="SourceFlow.BaseViewFinder">
128128
<Position X="7.25" Y="11" Width="2.25" />
129129
<TypeIdentifier>
130130
<HashCode>AAAAAAAAAAACAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAA=</HashCode>
131-
<FileName>BaseViewModelFinder.cs</FileName>
131+
<FileName>BaseViewFinder.cs</FileName>
132132
</TypeIdentifier>
133133
<ShowAsAssociation>
134134
<Field Name="repository" />
@@ -228,11 +228,11 @@
228228
<FileName>IEventHandler.cs</FileName>
229229
</TypeIdentifier>
230230
</Interface>
231-
<Interface Name="SourceFlow.IViewModelTransform&lt;TEvent&gt;">
231+
<Interface Name="SourceFlow.IViewTransform&lt;TEvent&gt;">
232232
<Position X="0.75" Y="12.5" Width="2.5" />
233233
<TypeIdentifier>
234234
<HashCode>AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=</HashCode>
235-
<FileName>IViewModelTransform.cs</FileName>
235+
<FileName>IViewTransform.cs</FileName>
236236
</TypeIdentifier>
237237
</Interface>
238238
<Interface Name="SourceFlow.IViewModel">
@@ -263,18 +263,18 @@
263263
<FileName>IEntity.cs</FileName>
264264
</TypeIdentifier>
265265
</Interface>
266-
<Interface Name="SourceFlow.IViewModelFinder">
266+
<Interface Name="SourceFlow.IViewFinder">
267267
<Position X="7.25" Y="9.5" Width="2.25" />
268268
<TypeIdentifier>
269269
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAA=</HashCode>
270-
<FileName>IViewModelFinder.cs</FileName>
270+
<FileName>IViewFinder.cs</FileName>
271271
</TypeIdentifier>
272272
</Interface>
273-
<Interface Name="SourceFlow.IViewModelTransform">
273+
<Interface Name="SourceFlow.IViewTransform">
274274
<Position X="0.75" Y="11.25" Width="2.5" />
275275
<TypeIdentifier>
276276
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
277-
<FileName>IViewModelTransform.cs</FileName>
277+
<FileName>IViewTransform.cs</FileName>
278278
</TypeIdentifier>
279279
</Interface>
280280
<Interface Name="SourceFlow.IEventPayload">

src/SourceFlow/CommandBus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace SourceFlow
99
/// <summary>
1010
/// Command bus implementation that handles commands and events in an event-driven architecture.
1111
/// </summary>
12-
public class CommandBus : ICommandBus
12+
internal class CommandBus : ICommandBus
1313
{
1414
/// <summary>
1515
/// The event store used to persist events.

0 commit comments

Comments
 (0)