Ejemplo n.º 1
0
 private SiteDefinitions Create(IEnumerable<Foundation.MultiSite.SiteDefinition> definitions)
 {
   var siteDefinitions = new SiteDefinitions
                         {
                           Sites = definitions.Where(IsValidSiteDefinition).Select(CreateSiteDefinition)
                         };
   return siteDefinitions;
 }
Ejemplo n.º 2
0
 public void Current_ShouldReturnSiteDefinitionWithIsCurrentPropertySet(SiteDefinitions siteDefinitions, SiteDefinition definition)
 {
   definition.IsCurrent = true;
   siteDefinitions.Sites = new List<SiteDefinition> {definition};
   siteDefinitions.Current.ShouldBeEquivalentTo(definition);
 }