Exemplo n.º 1
0
        public CommentsGrainTests()
        {
            A.CallTo(() => eventStore.AppendAsync(A <Guid> ._, A <string> ._, A <long> ._, A <ICollection <EventData> > ._))
            .Invokes(x => LastEvents = sut.GetUncommittedEvents().Select(x => x.To <IEvent>()).ToList());

            sut = new CommentsGrain(eventStore, eventDataFormatter);
            sut.ActivateAsync(Id).Wait();
        }
Exemplo n.º 2
0
 public CommentsGrainTests()
 {
     sut = new CommentsGrain(Store, A.Dummy <ISemanticLog>());
     sut.ActivateAsync(Id).Wait();
 }