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