public UserEventPublisherTests() { A.CallTo(() => producer.ProduceAsync(A <string> ._, A <UserEventMessage> ._)) .Invokes(call => publishedUserEvents.Add(call.GetArgument <UserEventMessage>(1) !)); sut = new UserEventPublisher(counters, A.Fake <ISemanticLog>(), logStore, eventStore, subscriptionStore, templateStore, userStore, producer); }
public UserEventPublisherTests() { ct = cts.Token; A.CallTo(() => producer.ProduceAsync(A <string> ._, A <UserEventMessage> ._, A <CancellationToken> ._)) .Invokes(call => publishedUserEvents.Add(call.GetArgument <UserEventMessage>(1) !)); var log = A.Fake <ILogger <UserEventPublisher> >(); sut = new UserEventPublisher(counters, logStore, eventStore, subscriptionStore, templateStore, userStore, producer, log, randomizer); }