public AccountBilled(AccountNumber accountNumber, Recency recency) { Mandate.ParameterNotNullOrEmpty(accountNumber, "accountNumber"); Mandate.ParameterNotDefaut(recency, "recency"); Recency = recency; AccountNumber = accountNumber; }
public AccountBilled(AccountNumber accountNumber, ClientId clientId, Recency recency) { Mandate.ParameterNotNullOrEmpty(accountNumber, "accountNumber"); Mandate.ParameterNotNullOrEmpty(clientId, "clientId"); Recency = recency; ClientId = clientId; AccountNumber = accountNumber; }
void IHandleAccountStateTransitions.When(AccountBilled @event) { recency = @event.Recency; }
public AccountBilled(AccountNumber accountNumber, Recency recency) { Recency = recency; AccountNumber = accountNumber; }
void IAccountState.When(AccountBilled @event) { recency = @event.Recency; }