public ProfileContentfulFactoryTest() { _contentfulProfile = new ContentfulProfileBuilder().Build(); _crumbFactory = new Mock <IContentfulFactory <ContentfulReference, Crumb> >(); _eventBannerFactory = new Mock <IContentfulFactory <ContentfulEventBanner, EventBanner> >(); _profileContentfulFactory = new ProfileContentfulFactory( _crumbFactory.Object, new Mock <IContentfulFactory <ContentfulAlert, Alert> >().Object, new Mock <IContentfulFactory <ContentfulTrivia, Trivia> >().Object, new Mock <IContentfulFactory <ContentfulInlineQuote, InlineQuote> >().Object, _eventBannerFactory.Object); }
public void ShouldSetDefaultsOnModel() { var actual = new ContentfulProfile(); var expected = new ContentfulProfile { Title = string.Empty, Slug = string.Empty, Subtitle = string.Empty, Image = new Asset { File = new File { Url = string.Empty }, SystemProperties = new SystemProperties { Type = "Asset" } }, Body = string.Empty, Breadcrumbs = new List <ContentfulReference>() }; actual.Should().BeEquivalentTo(expected); }