public void InitializeRepository() { Context = new WebNoteCategoryMock(); Context.Categories = new MockObjectSet <Category>(CreateCategoriesList()); Context.CategoryToNodes = new MockObjectSet <CategoryToNode>(CreateCategoryToNodesList()); Repository = new WebNoteCategoryRepository { Context = Context }; }
public void CleanupRepository() { Context = null; Repository = null; }