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