public void SingleOrDefault() { var repository = new GenericListRepositoryGuid<Category>(); var category = repository.Create(); category = repository.Save(category); var result = repository.SingleOrDefault(category.Id); Assert.IsNotNull(result); Assert.AreEqual(category, result); }
public void Initialize() { repository = new GenericListRepositoryGuid<Category>(); CreateTree(); }