예제 #1
0
        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);
        }
예제 #2
0
 /// <summary>
 /// </summary>
 /// <param name="timelineWriterService">Service class to use to perform the command</param>
 public PostCommand(ITimelineWriterService timelineWriterService)
 {
     this.timelineWriterService = timelineWriterService;
 }