示例#1
0
        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);
            }
        }
示例#2
0
 public void SetPublisher()
 {
     this.publisher = new SolutionProcessorPublisher(Enumerable.Empty <ISolutionSyncProcessor>());
 }