private MetaDataViewModel CreateSeoViewModel(IPageMetaDataProperties metaDataProperties) { return(metaDataProperties == null ? null : new MetaDataViewModel(metaDataProperties, _epiServerDependencies.LinkResolver)); }
public void SEOTitle_Should_Be_False_When_Not_Set(IPageMetaDataProperties pageMetaDataProperties) { var metaDataViewModel = new MetaDataViewModel(pageMetaDataProperties); metaDataViewModel.HasTitle.Should().BeFalse(); }
private static MetaDataViewModel CreateSeoViewModel(IPageMetaDataProperties metaDataProperties) { return(metaDataProperties == null ? null : new MetaDataViewModel(metaDataProperties)); }
public void Current_Should_Be_Set_Correctly(IPageMetaDataProperties pageMetaDataProperties) { var metaDataViewModel = new MetaDataViewModel(pageMetaDataProperties); metaDataViewModel.Current.Should().NotBeNull(); }
public MetaDataViewModel(IPageMetaDataProperties model, ILinkResolver linkResolver) { Current = model; _linkResolver = linkResolver; }
private MetaDataViewModel CreateSeoViewModel(IPageMetaDataProperties metaDataProperties) { return metaDataProperties == null ? null : new MetaDataViewModel(metaDataProperties, _epiServerDependencies.LinkResolver); }
public MetaDataViewModel(IPageMetaDataProperties model) { Guard.ValidateObject(model); Current = model; }