Beispiel #1
0
 public UC1AccountTestCases(EventStoreFixture fixture)
 {
     _accountId = Guid.NewGuid();
     _runner    = new EventStoreScenarioRunner <Account>(
         _accountId,
         fixture,
         (repository, dispatcher) => new AccountCommandHandler(repository, dispatcher));
 }
Beispiel #2
0
 public US8WithdrawalBlockAccount(EventStoreFixture fixture)
 {
     _accountId = Guid.NewGuid();
     _runner    = new EventStoreScenarioRunner <Account>(
         _accountId,
         fixture,
         (repository, dispatcher) => new AccountCommandHandler(repository, dispatcher));
 }
Beispiel #3
0
 public SetDailyWireTransferLimitTests(EventStoreFixture fixture)
 {
     _accountId = Guid.NewGuid();
     _runner    = new EventStoreScenarioRunner <Account>(
         _accountId,
         fixture,
         (repository, dispatcher) => new AccountCommandHandler(repository, dispatcher));
 }
Beispiel #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));
 }
Beispiel #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));
 }