private int AddToStore(IList <TestRelationshipChain> store, TestRelationshipChain chain)
        {
            int @ref = store.Count;

            store.Add(chain);
            return(@ref);
        }
Пример #2
0
 public StubRelationshipCursor(TestRelationshipChain chain) : this(Collections.singletonList(chain))
 {
 }
 private StubGroupCursor.GroupData Group(IList <TestRelationshipChain> store, int type, TestRelationshipChain @out, TestRelationshipChain @in, TestRelationshipChain loop)
 {
     return(new StubGroupCursor.GroupData(AddToStore(store, @out), AddToStore(store, @in), AddToStore(store, loop), type));
 }