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); }
public void UpdateToNewPublisher() { this.publisher = this.factory.CreatePublisher(); }
public void SetMockPublisher() { this.publisher = Substitute.For <ISolutionSyncPublisher>(); SolutionSyncUnitySubscriber.Publisher = this.publisher; }
public static void ResetPublisher() { Publisher = new SolutionSyncPublishManager( new SolutionProcessorPublisherFactory( new OmniscientSolutionProcessorRepository(AppDomain.CurrentDomain.GetAssemblies()))); }