GetByName() public method

Returns a category with a name matching the given name. Returns a null category if no match is found.
public GetByName ( string name ) : CategoryDTO
name string Category name
return openTill.Domain.DTO.CategoryDTO
 public void WhitespaceStringCategoryGetByNameException()
 {
     CategoryRepository testCategoryRepository = new CategoryRepository();
     testCategoryRepository.GetByName("   ");
 }
 public void NullStringCategoryGetByNameException()
 {
     CategoryRepository testCategoryRepository = new CategoryRepository();
     testCategoryRepository.GetByName(null);
 }