/// <summary>
 /// Constructor for an Exchange Gateway
 /// </summary>
 /// <param name="exchangeServer">Exchange server address for exchange searches</param>
 /// <param name="webdav">WebDAV query service</param>
 /// <param name="queryBuilder">Optional WebDAV query builder service</param>
 public FreeBusyService(
     string exchangeServer,
     WebDavQuery webdav,
     WebDavQueryBuilder queryBuilder)
 {
     exchangeServerUrl = exchangeServer;
     webDavQuery = webdav;
     webDavQueryBuilder = queryBuilder ?? new WebDavQueryBuilder();
 }
 public void Init()
 {
     _requestor = new XmlRequestMock();
     _webdav = new WebDavQuery(CredentialCache.DefaultCredentials, _requestor);
     _user = createFauxUser("test", "*****@*****.**");
 }
Ejemplo n.º 3
0
 public void Init()
 {
     _requestor = new XmlRequestMock();
     _webdav    = new WebDavQuery(CredentialCache.DefaultCredentials, _requestor);
     _user      = createFauxUser("test", "*****@*****.**");
 }
 public AppointmentGatewayMock(string exchangeServer, WebDavQuery webdav) :
     base(exchangeServer, webdav)
 {
 }
        /// <summary>
        /// Constructor for an Exchange Gateway
        /// </summary>
        /// <param name="exchangeServer">Exchange server address for exchange searches</param>
        /// <param name="networkLogin">Username for an exchange user</param>
        /// <param name="networkPassword">Credentail for an exchange user</param>
        public ExchangeService(string exchangeServer, string networkLogin, string networkPassword)
        {
            exchangeServerUrl = exchangeServer;

            // Set the default connection limit
            ServicePointManager.DefaultConnectionLimit = ConfigCache.ExchangeMaxConnections;

            ICredentials credentials = new NetworkCredential(networkLogin, networkPassword);
            webDavQuery = new WebDavQuery(credentials, "Exchange");
            appointments = new AppointmentService(exchangeServerUrl, webDavQuery);
            freebusy = new FreeBusyService(exchangeServerUrl, webDavQuery, null);
        }
 /// <summary>
 /// Constructor for an Appointment Gateway
 /// </summary>
 /// <param name="exchangeServer">Exchange server address for exchange searches</param>
 /// <param name="webdav">WebDAV query service</param>
 public AppointmentService(string exchangeServer, WebDavQuery webdav)
 {
     exchangeServerUrl = exchangeServer;
     webDavQuery = webdav;
 }