/// <summary>
 /// Initializes a new instance of the <see cref="ContractHierarchyLogic"/> class.
 /// </summary>
 /// <param name="contractRepository">The contract repository.</param>
 public ContractHierarchyLogic(IContractHierarchyRepository contractRepository)
 {
     if (contractRepository != null)
     {
         _contractTreeViewRepository = contractRepository;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ContractHierarchyLogic"/> class.
 /// </summary>
 /// <param name="connectionString">The connection string.</param>
 public ContractHierarchyLogic(string connectionString)
 {
     _contractTreeViewRepository = Factory.CreateInstance <IContractHierarchyRepository>(connectionString, true);
 }