-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b1fda1
commit 02eac1a
Showing
36 changed files
with
808 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Application.Services.Shared; | ||
|
||
public interface ISubscriptionsService | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Domain.Common; | ||
using Domain.Common.ValueObjects; | ||
using JetBrains.Annotations; | ||
|
||
namespace Domain.Events.Shared.Subscriptions; | ||
|
||
public sealed class Created : DomainEvent | ||
{ | ||
public Created(Identifier id) : base(id) | ||
{ | ||
} | ||
|
||
[UsedImplicitly] | ||
public Created() | ||
{ | ||
} | ||
|
||
public required string CreatedById { get; set; } | ||
|
||
public required string OrganizationId { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/SubscriptionsApplication.UnitTests/SubscriptionsApplication.UnitTests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<IsTestProject>true</IsTestProject> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Application.Interfaces\Application.Interfaces.csproj" /> | ||
<ProjectReference Include="..\SubscriptionsApplication\SubscriptionsApplication.csproj" /> | ||
<ProjectReference Include="..\UnitTesting.Common\UnitTesting.Common.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" /> | ||
</ItemGroup> | ||
|
||
</Project> |
9 changes: 9 additions & 0 deletions
9
src/SubscriptionsApplication.UnitTests/SubscriptionsApplicationSpec.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Xunit; | ||
|
||
namespace SubscriptionsApplication.UnitTests; | ||
|
||
[Trait("Category", "Unit")] | ||
public class SubscriptionsApplicationSpec | ||
{ | ||
//TODO: type testm or testma to create a new test method | ||
} |
13 changes: 13 additions & 0 deletions
13
src/SubscriptionsApplication/ApplicationServices/SubscriptionsInProcessServiceClient.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Application.Services.Shared; | ||
|
||
namespace SubscriptionsApplication.ApplicationServices; | ||
|
||
public class SubscriptionsInProcessServiceClient : ISubscriptionsService | ||
{ | ||
private readonly ISubscriptionsApplication _subscriptionsApplication; | ||
|
||
public SubscriptionsInProcessServiceClient(ISubscriptionsApplication subscriptionsApplication) | ||
{ | ||
_subscriptionsApplication = subscriptionsApplication; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace SubscriptionsApplication; | ||
|
||
public interface ISubscriptionsApplication | ||
{ | ||
} |
5 changes: 5 additions & 0 deletions
5
src/SubscriptionsApplication/Persistence/ISubscriptionRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace SubscriptionsApplication.Persistence; | ||
|
||
public interface ISubscriptionRepository | ||
{ | ||
} |
11 changes: 11 additions & 0 deletions
11
src/SubscriptionsApplication/Persistence/ReadModels/Subscription.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Application.Persistence.Common; | ||
using Common; | ||
using QueryAny; | ||
|
||
namespace SubscriptionsApplication.Persistence.ReadModels; | ||
|
||
[EntityName("Subscription")] | ||
public class Subscription : ReadModelEntity | ||
{ | ||
public Optional<string> CreatedById { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace SubscriptionsApplication; | ||
|
||
public class SubscriptionsApplication : ISubscriptionsApplication | ||
{ | ||
} |
18 changes: 18 additions & 0 deletions
18
src/SubscriptionsApplication/SubscriptionsApplication.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> | ||
<_Parameter1>$(AssemblyName).UnitTests</_Parameter1> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Application.Persistence.Common\Application.Persistence.Common.csproj" /> | ||
<ProjectReference Include="..\SubscriptionsDomain\SubscriptionsDomain.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Xunit; | ||
|
||
namespace SubscriptionsDomain.UnitTests; | ||
|
||
[Trait("Category", "Unit")] | ||
public class SubscriptionRootSpec | ||
{ | ||
//TODO: type testm or testma to create a new test method | ||
} |
18 changes: 18 additions & 0 deletions
18
src/SubscriptionsDomain.UnitTests/SubscriptionsDomain.UnitTests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<IsTestProject>true</IsTestProject> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Application.Interfaces\Application.Interfaces.csproj" /> | ||
<ProjectReference Include="..\SubscriptionsDomain\SubscriptionsDomain.csproj" /> | ||
<ProjectReference Include="..\UnitTesting.Common\UnitTesting.Common.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Domain.Common.ValueObjects; | ||
using Domain.Events.Shared.Subscriptions; | ||
|
||
namespace SubscriptionsDomain; | ||
|
||
public static class Events | ||
{ | ||
public static Created Created(Identifier id, Identifier organizationId, Identifier createdBy) | ||
{ | ||
return new Created(id) | ||
{ | ||
OrganizationId = organizationId, | ||
CreatedById = createdBy | ||
}; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<root> | ||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" | ||
id="root" | ||
xmlns=""> | ||
<xsd:element name="root" msdata:IsDataSet="true"> | ||
|
||
</xsd:element> | ||
</xsd:schema> | ||
<resheader name="resmimetype"> | ||
<value>text/microsoft-resx</value> | ||
</resheader> | ||
<resheader name="version"> | ||
<value>1.3</value> | ||
</resheader> | ||
<resheader name="reader"> | ||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, | ||
PublicKeyToken=b77a5c561934e089 | ||
</value> | ||
</resheader> | ||
<resheader name="writer"> | ||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, | ||
PublicKeyToken=b77a5c561934e089 | ||
</value> | ||
</resheader> | ||
</root> |
Oops, something went wrong.