public void EventMessageServiceExtractPageLocationReturnsnullForMissingContentItems() { // arrange var contentPageModel = new ContentPageModel(); var eventMessageService = new EventMessageService <ContentPageModel>(fakeLogger, fakeContentPageService); // act var result = eventMessageService.ExtractPageLocation(contentPageModel); // assert Assert.Null(result); }
public void EventMessageServiceExtractPageLocationReturnsSuccess() { // arrange var contentPageModel = BuildContentPageModelWithPageLocations(); const string expectedResult = "/a/b/c"; var eventMessageService = new EventMessageService <ContentPageModel>(fakeLogger, fakeContentPageService); // act var result = eventMessageService.ExtractPageLocation(contentPageModel); // assert Assert.Equal(expectedResult, result); }