Inheritance: gov.va.medora.mdo.dao.AbstractConnection
Exemplo n.º 1
0
 public override AbstractConnection getConnection(DataSource dataSource)
 {
     if (dataSource == null || dataSource.SiteId == null || String.IsNullOrEmpty(dataSource.SiteId.Id))
     {
         throw new ArgumentNullException("MockConnection must have a data source");
     }
     MockConnection cxn = new MockConnection(dataSource.SiteId.Id, dataSource.Protocol);
     cxn.OverrideMockFile = "MDWS";
     cxn.VerifyRpc = false;
     cxn.ConnectStrategy = new MockConnectStrategy(cxn);
     return cxn;
 }
Exemplo n.º 2
0
        public override AbstractConnection getConnection(DataSource dataSource)
        {
            if (dataSource == null || dataSource.SiteId == null || String.IsNullOrEmpty(dataSource.SiteId.Id))
            {
                throw new ArgumentNullException("MockConnection must have a data source");
            }
            MockConnection cxn = new MockConnection(dataSource.SiteId.Id, dataSource.Protocol);

            //cxn.OverrideMockFile = "MDWS";
            cxn.VerifyRpc       = false;
            cxn.ConnectStrategy = new MockConnectStrategy(cxn);
            return(cxn);
        }