private MetaDataViewModel CreateSeoViewModel(IPageMetaDataProperties metaDataProperties)
 {
     return(metaDataProperties == null ? null : new MetaDataViewModel(metaDataProperties, _epiServerDependencies.LinkResolver));
 }
예제 #2
0
        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));
 }
예제 #4
0
        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;
 }
예제 #8
0
 public MetaDataViewModel(IPageMetaDataProperties model, ILinkResolver linkResolver)
 {
     Current       = model;
     _linkResolver = linkResolver;
 }