This file contains hidden or 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
| namespace Fohjin.DDD.Commands | |
| { | |
| [Serializable] | |
| public class ClientIsMovingCommand : Command | |
| { | |
| public string Street { get; private set; } | |
| public string StreetNumber { get; private set; } | |
| public string PostalCode { get; private set; } | |
| public string City { get; private set; } |
This file contains hidden or 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
| namespace Fohjin.Core { } | |
| namespace Fohjin.Core.Controllers { } | |
| namespace Fohjin.Core.Persistence { } | |
| namespace Fohjin.Core.Tests { } | |
| namespace Fohjin.Core.Tests.Controllers { } | |
| namespace Fohjin.Core.Tests.Persistence { } | |
| namespace Fohjin.Core.Specification { } | |
| namespace Fohjin.Core.Specification.Controllers { } |
This file contains hidden or 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
| namespace Fohjin.Refactoring | |
| { | |
| public class ClassToBeRefactored | |
| { | |
| public void DoSomething() | |
| { | |
| DependencyA dependencyA = new DependencyA(); | |
| DependencyB dependencyB = new DependencyB(); | |
| } | |
| } |
This file contains hidden or 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
| namespace Fohjin.DDD.EventStore.Storage.Memento | |
| { | |
| public interface IOrginator | |
| { | |
| IMemento CreateMemento(); | |
| void SetMemento(IMemento memento); | |
| } | |
| } |
This file contains hidden or 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
| void IEventProvider.LoadFromHistory(IEnumerable<IDomainEvent> domainEvents) | |
| { | |
| if (domainEvents.Count() == 0) | |
| return; | |
| foreach (var domainEvent in domainEvents) | |
| { | |
| apply(domainEvent.GetType(), domainEvent); | |
| } |
This file contains hidden or 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
| namespace Fohjin.DDD.Domain.Client | |
| { | |
| public class Client : BaseAggregateRoot<IDomainEvent>, IOrginator | |
| { | |
| private Address _address; | |
| public Client() | |
| { | |
| registerEvents(); | |
| } |
This file contains hidden or 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
| namespace Fohjin.DDD.BankApplication.Views | |
| { | |
| public partial class ClientSearchForm : Form, IClientSearchFormView | |
| { | |
| public ClientSearchForm() | |
| { | |
| InitializeComponent(); | |
| RegisterClientEvents(); | |
| } |
This file contains hidden or 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
| namespace Test.Fohjin.DDD | |
| { | |
| [Specification] | |
| public abstract class BaseTestFixture | |
| { | |
| protected Exception CaughtException; | |
| protected virtual void Given() { } | |
| protected abstract void When(); | |
| protected virtual void Finally() { } |
This file contains hidden or 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
| namespace Fohjin.DDD.Events.Account | |
| { | |
| [Serializable] | |
| public class CashWithdrawnEvent : DomainEvent | |
| { | |
| public decimal Balance { get; private set; } | |
| public decimal Amount { get; private set; } | |
| public CashWithdrawnEvent(decimal balance, decimal amount) | |
| { |
This file contains hidden or 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
| function positive_int() { return $(test "$@" -eq "$@" > /dev/null 2>&1 && test "$@" -ge 0 > /dev/null 2>&1); } | |
| function sizetw() { | |
| if [[ $# -eq 2 ]] && $(positive_int "$1") && $(positive_int "$2"); then | |
| printf "\e[8;${1};${2};t" | |
| return 0 | |
| fi | |
| return 1 | |
| } |
OlderNewer