public void ValidateBranch(Branch branch)
 {
     if (string.IsNullOrEmpty(branch.Name))
     {
         throw new OpenCbsBranchNameIsEmptyException();
     }
     if (string.IsNullOrEmpty(branch.Code))
     {
         throw new OpenCbsBranchCodeIsEmptyException();
     }
     if (string.IsNullOrEmpty(branch.Address))
     {
         throw new OpenCbsBranchAddressIsEmptyException();
     }
     if (_manager.NameExists(branch.Id, branch.Name))
     {
         throw new OpenCbsBranchSameNameException();
     }
     if (_manager.CodeExists(branch.Id, branch.Code))
     {
         throw new OpenCbsBranchSameCodeException();
     }
 }