Exemplo n.º 1
0
 public UC1AccountTestCases(EventStoreFixture fixture)
 {
     _accountId = Guid.NewGuid();
     _runner    = new EventStoreScenarioRunner <Account>(
         _accountId,
         fixture,
         (repository, dispatcher) => new AccountCommandHandler(repository, dispatcher));
 }
Exemplo n.º 2
0
 public US8WithdrawalBlockAccount(EventStoreFixture fixture)
 {
     _accountId = Guid.NewGuid();
     _runner    = new EventStoreScenarioRunner <Account>(
         _accountId,
         fixture,
         (repository, dispatcher) => new AccountCommandHandler(repository, dispatcher));
 }
Exemplo n.º 3
0
 public SetDailyWireTransferLimitTests(EventStoreFixture fixture)
 {
     _accountId = Guid.NewGuid();
     _runner    = new EventStoreScenarioRunner <Account>(
         _accountId,
         fixture,
         (repository, dispatcher) => new AccountCommandHandler(repository, dispatcher));
 }
Exemplo n.º 4
0
 public WireTransferTests(EventStoreFixture fixture)
 {
     _accountId = Guid.NewGuid();
     _clock     = SystemClock.Instance;
     _runner    = new EventStoreScenarioRunner <Account>(
         _accountId,
         fixture,
         (repository, dispatcher) => new AccountCommandHandler(repository, dispatcher, _clock));
 }
Exemplo n.º 5
0
 protected TestsBase(EventStoreFixture fixture)
 {
     AccountId = Guid.NewGuid();
     Clock     = new MockClock("Europe/London");
     Runner    = new EventStoreScenarioRunner <Account>(
         AccountId,
         fixture,
         (repository, dispatcher) => new AccountCommandHandler(repository, dispatcher, Clock));
 }