-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
29 changed files
with
95 additions
and
309 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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/Fraktalio.Contracts/ISaga.cs → src/Fraktalio.FModel.Contracts/ISaga.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
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
src/Fraktalio/SagaExtensions.cs → src/Fraktalio.FModel/SagaExtensions.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Fraktalio; | ||
namespace Fraktalio.FModel; | ||
|
||
public static class SagaExtensions | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
src/Fraktalio/SagaFactory.cs → src/Fraktalio.FModel/SagaFactory.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Fraktalio; | ||
namespace Fraktalio.FModel; | ||
|
||
public static class SagaFactory | ||
{ | ||
|
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
2 changes: 1 addition & 1 deletion
2
test/Fraktalio.Tests/EnumerableExtensions.cs → ...alio.FModel.Tests/EnumerableExtensions.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
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,14 @@ | ||
namespace Fraktalio.FModel.Tests.Examples.Numbers; | ||
|
||
public record Number(int Value) | ||
{ | ||
public static Description operator +(Number a, Number b) => | ||
new($"{a.Value} + {b.Value}"); | ||
|
||
public static Description operator -(Number a, Number b) => | ||
new($"{a.Value} - {b.Value}"); | ||
|
||
public static Number Create(int value) => new Number(value); | ||
|
||
public static implicit operator int(Number value) => value.Value; | ||
} |
20 changes: 10 additions & 10 deletions
20
...o.Tests/Examples/Numbers/NumberCommand.cs → ...l.Tests/Examples/Numbers/NumberCommand.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 |
---|---|---|
@@ -1,37 +1,37 @@ | ||
namespace Fraktalio.Tests.Examples.Numbers; | ||
namespace Fraktalio.FModel.Tests.Examples.Numbers; | ||
|
||
public abstract class NumberCommand | ||
{ | ||
public abstract Description Description { get; } | ||
public abstract NumberValue Value { get; } | ||
public abstract Number Value { get; } | ||
|
||
public abstract class EvenNumberCommand : NumberCommand | ||
{ | ||
public sealed class AddEvenNumber(Description description, NumberValue value) : EvenNumberCommand | ||
public sealed class AddEvenNumber(Description description, Number value) : EvenNumberCommand | ||
{ | ||
public override Description Description { get; } = description; | ||
public override NumberValue Value { get; } = value; | ||
public override Number Value { get; } = value; | ||
} | ||
|
||
public sealed class SubtractEvenNumber(Description description, NumberValue value) : EvenNumberCommand | ||
public sealed class SubtractEvenNumber(Description description, Number value) : EvenNumberCommand | ||
{ | ||
public override Description Description { get; } = description; | ||
public override NumberValue Value { get; } = value; | ||
public override Number Value { get; } = value; | ||
} | ||
} | ||
|
||
public abstract class OddNumberCommand : NumberCommand | ||
{ | ||
public sealed class AddOddNumber(Description description, NumberValue value) : OddNumberCommand | ||
public sealed class AddOddNumber(Description description, Number value) : OddNumberCommand | ||
{ | ||
public override Description Description { get; } = description; | ||
public override NumberValue Value { get; } = value; | ||
public override Number Value { get; } = value; | ||
} | ||
|
||
public sealed class SubtractOddNumber(Description description, NumberValue value) : OddNumberCommand | ||
public sealed class SubtractOddNumber(Description description, Number value) : OddNumberCommand | ||
{ | ||
public override Description Description { get; } = description; | ||
public override NumberValue Value { get; } = value; | ||
public override Number Value { get; } = value; | ||
} | ||
} | ||
} |
20 changes: 10 additions & 10 deletions
20
...lio.Tests/Examples/Numbers/NumberEvent.cs → ...del.Tests/Examples/Numbers/NumberEvent.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 |
---|---|---|
@@ -1,37 +1,37 @@ | ||
namespace Fraktalio.Tests.Examples.Numbers; | ||
namespace Fraktalio.FModel.Tests.Examples.Numbers; | ||
|
||
public abstract class NumberEvent | ||
{ | ||
public abstract Description Description { get; } | ||
public abstract NumberValue Value { get; } | ||
public abstract Number Value { get; } | ||
|
||
public abstract class EvenNumberEvent : NumberEvent | ||
{ | ||
public sealed class EvenNumberAdded(Description description, NumberValue value) : EvenNumberEvent | ||
public sealed class EvenNumberAdded(Description description, Number value) : EvenNumberEvent | ||
{ | ||
public override Description Description { get; } = description; | ||
public override NumberValue Value { get; } = value; | ||
public override Number Value { get; } = value; | ||
} | ||
|
||
public sealed class EvenNumberSubtracted(Description description, NumberValue value) : EvenNumberEvent | ||
public sealed class EvenNumberSubtracted(Description description, Number value) : EvenNumberEvent | ||
{ | ||
public override Description Description { get; } = description; | ||
public override NumberValue Value { get; } = value; | ||
public override Number Value { get; } = value; | ||
} | ||
} | ||
|
||
public abstract class OddNumberEvent : NumberEvent | ||
{ | ||
public sealed class OddNumberAdded(Description description, NumberValue value) : OddNumberEvent | ||
public sealed class OddNumberAdded(Description description, Number value) : OddNumberEvent | ||
{ | ||
public override Description Description { get; } = description; | ||
public override NumberValue Value { get; } = value; | ||
public override Number Value { get; } = value; | ||
} | ||
|
||
public sealed class OddNumberSubtracted(Description description, NumberValue value) : OddNumberEvent | ||
public sealed class OddNumberSubtracted(Description description, Number value) : OddNumberEvent | ||
{ | ||
public override Description Description { get; } = description; | ||
public override NumberValue Value { get; } = value; | ||
public override Number Value { get; } = value; | ||
} | ||
} | ||
} |
12 changes: 6 additions & 6 deletions
12
...lio.Tests/Examples/Numbers/NumberState.cs → ...del.Tests/Examples/Numbers/NumberState.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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
namespace Fraktalio.Tests.Examples.Numbers; | ||
namespace Fraktalio.FModel.Tests.Examples.Numbers.States; | ||
|
||
public abstract class NumberState | ||
{ | ||
public abstract Description Description { get; } | ||
public abstract NumberValue Value { get; } | ||
public abstract Number Value { get; } | ||
} | ||
|
||
public sealed class EvenNumberState(Description description, NumberValue value) : NumberState | ||
public sealed class EvenNumberState(Description description, Number value) : NumberState | ||
{ | ||
public override Description Description { get; } = description; | ||
public override NumberValue Value { get; } = value; | ||
public override Number Value { get; } = value; | ||
} | ||
|
||
public sealed class OddNumberState(Description description, NumberValue value) : NumberState | ||
public sealed class OddNumberState(Description description, Number value) : NumberState | ||
{ | ||
public override Description Description { get; } = description; | ||
public override NumberValue Value { get; } = value; | ||
public override Number Value { get; } = value; | ||
} |
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
test/Fraktalio.Tests/SagaExtensions.cs → .../Fraktalio.FModel.Tests/SagaExtensions.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
Oops, something went wrong.