Example #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);
        }
Example #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());
        }
Example #3
0
 public override void Execute()
 {
     CompanyExecutor.Execute();
     PersonDynamicProgrammingExecutor.Execute();
     PersonExecutor.Execute();
 }
Example #4
0
 public override void Execute()
 {
     CompanyExecutor.Execute();
     PersonExecutor.Execute();
 }