Пример #1
0
        public HierarchyArgumentTests()
        {
            mapping = DocumentMapping.For<Squad>();

            arg = new HierarchyArgument(mapping);

            mapping.AddSubClass(typeof(BasketballTeam));
            mapping.AddSubClass(typeof(BaseballTeam));
            mapping.AddSubClass(typeof(FootballTeam), "football");
        }
Пример #2
0
        public HierarchyArgumentTests()
        {
            mapping = new DocumentMapping(typeof(Squad), new StoreOptions());

            arg = new HierarchyArgument(mapping);

            mapping.AddSubClass(typeof(BasketballTeam));
            mapping.AddSubClass(typeof(BaseballTeam));
            mapping.AddSubClass(typeof(FootballTeam), "football");
        }
Пример #3
0
 protected bool Equals(HierarchyArgument other)
 {
     return Equals(Mapping, other.Mapping);
 }