public void Initialize() { //Creates a fake ITimelineWriterService with a liked observer in order to //assert that the SUT relies on it timelineWriterServiceObserver = new StubObserver(); timelineWriterService = new Contracts.Interfaces.Fakes.StubITimelineWriterService { InstanceObserver = timelineWriterServiceObserver }; sut = new PostCommand(timelineWriterService); }
/// <summary> /// </summary> /// <param name="timelineWriterService">Service class to use to perform the command</param> public PostCommand(ITimelineWriterService timelineWriterService) { this.timelineWriterService = timelineWriterService; }