Esempio n. 1
0
        public void InitializeRepository()
        {
            Context                 = new WebNoteCategoryMock();
            Context.Categories      = new MockObjectSet <Category>(CreateCategoriesList());
            Context.CategoryToNodes = new MockObjectSet <CategoryToNode>(CreateCategoryToNodesList());

            Repository = new WebNoteCategoryRepository {
                Context = Context
            };
        }
Esempio n. 2
0
 public void CleanupRepository()
 {
     Context    = null;
     Repository = null;
 }