示例#1
0
        public async Task TimelineLinkEvent()
        {
            var mock = new Mock <ITimelineService>();

            TimelineEvent timelineEvent = new TimelineEvent();

            timelineEvent.Id = "IDE1";

            await timelineEvent.LinkEventAsync(mock.Object, "ID1");

            mock.Verify(m => m.PutJsonAsync("Timeline/LinkEvent", It.Is <object>(o => o.VerifyObject("TimelineId", "ID1") && o.VerifyObject("EventId", "IDE1"))));
        }