public void RegistersProcessors() { var mockProcessors = new[] { Substitute.For <ISolutionSyncProcessor>(), Substitute.For <ISolutionSyncProcessor>() }; this.publisher = new SolutionProcessorPublisher(mockProcessors); foreach (var processor in mockProcessors) { processor.Received().RegisterSubscriptions(this.publisher); } }
public void SetPublisher() { this.publisher = new SolutionProcessorPublisher(Enumerable.Empty <ISolutionSyncProcessor>()); }