Esempio 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();
        }
 public CommentsGrainTests()
 {
     sut = new CommentsGrain(Store, A.Dummy <ISemanticLog>());
     sut.ActivateAsync(Id).Wait();
 }