예제 #1
0
        public void AddingAgainShouldHavTwo()
        {
            var personExecutor = new PersonExecutor(_store, null);

            personExecutor.Execute("8004120351", person => person.RemoveToken("token", "not"), Guid.NewGuid());
            Thread.Sleep(100);
            _readModell.Verify(rm => rm.NewEvent(It.IsAny <FirebaseTokenRemoved>(), It.IsAny <string>()), Times.Once);
        }
예제 #2
0
        protected void Setup()
        {
            pipeLineHook = new PipeLineHook();
            _store       = Wireup.Init()
                           .UsingInMemoryPersistence()
                           .UsingJsonSerialization()
                           .HookIntoPipelineUsing(pipeLineHook)
                           .Build();

            var esf = new EventstoreSubscriptionFactory(_store, pipeLineHook);

            _readModell = new Mock <ISubscriptionConsumer>();

            esf.CreateSubscription(_readModell.Object);

            var personExecutor = new PersonExecutor(_store, null);

            personExecutor.Execute("8004120351", person => person.AddToken("token", "not"), Guid.NewGuid());
        }
예제 #3
0
 public override void Execute()
 {
     CompanyExecutor.Execute();
     PersonDynamicProgrammingExecutor.Execute();
     PersonExecutor.Execute();
 }
예제 #4
0
 public override void Execute()
 {
     CompanyExecutor.Execute();
     PersonExecutor.Execute();
 }