public void Before( ) { var contexts = new Contexts( ); contexts.AddScopedContexts( ); var context = contexts.Get <TestScope1>(); _ent = context.CreateEntity(); _testCompAScope1 = new TestCompAStruct_Scope1(); }
public void Before( ) { var contexts = new Contexts( ); contexts.AddScopedContexts( ); var _context = contexts.Get <TestScope1>( ); var compAId = Lookup <TestScope1, TestCompAStruct_Scope1> .Id; var compBId = Lookup <TestScope1, TestCompBStruct_Scope1> .Id; var compAFlagId = Lookup <TestScope1, TestCompAFlag_Scope1> .Id; _context.GetGroup(Matcher <Entity <TestScope1> > .AllOf(compAId)); _context.GetGroup(Matcher <Entity <TestScope1> > .AllOf(compBId)); _context.GetGroup(Matcher <Entity <TestScope1> > .AllOf(compAFlagId)); _context.GetGroup(Matcher <Entity <TestScope1> > .AllOf(compAId)); _context.GetGroup(Matcher <Entity <TestScope1> > .AllOf( compAId, compBId )); _context.GetGroup(Matcher <Entity <TestScope1> > .AllOf( compAId, compAFlagId )); _context.GetGroup(Matcher <Entity <TestScope1> > .AllOf( compBId, compAFlagId )); _context.GetGroup(Matcher <Entity <TestScope1> > .AllOf( compAId, compBId, compAFlagId )); var context = contexts.Get <TestScope1>(); _ent = context.CreateEntity(); _testCompAScope1 = new TestCompAStruct_Scope1(); }