public void SetUp()
 {
     this.publisher = Substitute.For <ISolutionSyncPublisher>();
     this.factory   = Substitute.For <ISolutionSyncPublisherFactory>();
     this.factory.CreatePublisher().Returns(_ => this.publisher);
     this.manager = new SolutionSyncPublishManager(this.factory);
 }
Example #2
0
 public void UpdateToNewPublisher()
 {
     this.publisher = this.factory.CreatePublisher();
 }
Example #3
0
 public void SetMockPublisher()
 {
     this.publisher = Substitute.For <ISolutionSyncPublisher>();
     SolutionSyncUnitySubscriber.Publisher = this.publisher;
 }
Example #4
0
 public static void ResetPublisher()
 {
     Publisher = new SolutionSyncPublishManager(
         new SolutionProcessorPublisherFactory(
             new OmniscientSolutionProcessorRepository(AppDomain.CurrentDomain.GetAssemblies())));
 }