Skip to content

Commit 65627e2

Browse files
authored
Merge pull request #6 from XerProjects/dev
Release 1.0.1
2 parents 799c45f + 99eb9ff commit 65627e2

23 files changed

+1044
-171
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,3 +262,7 @@ __pycache__/
262262

263263
# VS Code
264264
.vscode/
265+
266+
[Tt]ools/**
267+
![Tt]ools/packages.config
268+
BuildArtifacts/**

GitVersion.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
mode: ContinuousDelivery
2+
next-version: 1.0.1
3+
branches: {}
4+
ignore:
5+
sha: []

Src/Xer.DomainDriven/AggregateRoot.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ namespace Xer.DomainDriven
44
{
55
public abstract class AggregateRoot<TId> : Entity<TId>, IAggregateRoot<TId> where TId : IEquatable<TId>
66
{
7-
public AggregateRoot(TId aggregateId)
8-
: base(aggregateId)
7+
public AggregateRoot(TId aggregateRootId)
8+
: base(aggregateRootId)
99
{
1010
}
1111
}

Src/Xer.DomainDriven/Entity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ public abstract class Entity<TId> : IEntity<TId> where TId : IEquatable<TId>
1010
public TId Id { get; protected set; }
1111

1212
/// <summary>
13-
/// Date created.
13+
/// Date when entitity was created.
1414
/// </summary>
1515
public DateTime Created { get; protected set; }
1616

1717
/// <summary>
18-
/// Date updated.
18+
/// Date when entity was last updated.
1919
/// </summary>
2020
public DateTime Updated { get; protected set; }
2121

Src/Xer.DomainDriven/Exceptions/AggregateNotFoundException.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
3+
namespace Xer.DomainDriven.Exceptions
4+
{
5+
public class AggregateRootNotFoundException : Exception
6+
{
7+
public AggregateRootNotFoundException(string message) : base(message)
8+
{
9+
}
10+
11+
public AggregateRootNotFoundException(string message, Exception innerException) : base(message, innerException)
12+
{
13+
}
14+
}
15+
}

Src/Xer.DomainDriven/IEntity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ public interface IEntity<TId> where TId : IEquatable<TId>
1010
TId Id { get; }
1111

1212
/// <summary>
13-
/// Date when object was created.
13+
/// Date when entity was created.
1414
/// </summary>
1515
DateTime Created { get; }
1616

1717
/// <summary>
18-
/// Date when object was last updated.
18+
/// Date when entity was last updated.
1919
/// </summary>
2020
DateTime Updated { get; }
2121
}

Src/Xer.DomainDriven/Repositories/IAggregateAsyncRepository.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

Src/Xer.DomainDriven/Repositories/IAggregateRepository.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
using System.Threading;
3+
using System.Threading.Tasks;
4+
5+
namespace Xer.DomainDriven.Repositories
6+
{
7+
public interface IAggregateRootAsyncRepository<TAggregateRoot, TAggregateRootId> where TAggregateRoot : IAggregateRoot<TAggregateRootId>
8+
where TAggregateRootId : IEquatable<TAggregateRootId>
9+
{
10+
Task SaveAsync(TAggregateRoot aggregateRoot, CancellationToken cancellationToken = default(CancellationToken));
11+
Task<TAggregateRoot> GetByIdAsync(TAggregateRootId aggregateRootId, CancellationToken cancellationToken = default(CancellationToken));
12+
}
13+
}

0 commit comments

Comments
 (0)