Skip to content

Instantly share code, notes, and snippets.

View MarkNijhof's full-sized avatar

Mark Nijhof MarkNijhof

View GitHub Profile
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; }
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 { }
namespace Fohjin.Refactoring
{
public class ClassToBeRefactored
{
public void DoSomething()
{
DependencyA dependencyA = new DependencyA();
DependencyB dependencyB = new DependencyB();
}
}
namespace Fohjin.DDD.EventStore.Storage.Memento
{
public interface IOrginator
{
IMemento CreateMemento();
void SetMemento(IMemento memento);
}
}
void IEventProvider.LoadFromHistory(IEnumerable<IDomainEvent> domainEvents)
{
if (domainEvents.Count() == 0)
return;
foreach (var domainEvent in domainEvents)
{
apply(domainEvent.GetType(), domainEvent);
}
namespace Fohjin.DDD.Domain.Client
{
public class Client : BaseAggregateRoot<IDomainEvent>, IOrginator
{
private Address _address;
public Client()
{
registerEvents();
}
namespace Fohjin.DDD.BankApplication.Views
{
public partial class ClientSearchForm : Form, IClientSearchFormView
{
public ClientSearchForm()
{
InitializeComponent();
RegisterClientEvents();
}
namespace Test.Fohjin.DDD
{
[Specification]
public abstract class BaseTestFixture
{
protected Exception CaughtException;
protected virtual void Given() { }
protected abstract void When();
protected virtual void Finally() { }
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)
{
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
}