コード例 #1
0
        public async Task WDriveCanBeConnectedAsync()
        {
            // Arrange
            IAccesoUPVService service = new AccesoUPVService();
            NetworkDrive      drive   = service.Disco_W;

            drive.Username = SharedData.Username;
            // Keep to disconnect in further testing
            WDrive = drive;
            // Act and Assert
            await ConnectionTestsAsync.CanBeConnectedAsync(drive);
        }
コード例 #2
0
        public async Task VPN_DSICCanBeConnectedAsync()
        {
            // Arrange
            IAccesoUPVService service = new AccesoUPVService();
            VPN vpn = service.VPN_DSIC;
            await vpn.SetNameAutoAsync();

            // Keep to disconnect in further testing
            VPN_DSIC = vpn;
            // Act and Assert
            await ConnectionTestsAsync.CanBeConnectedAsync(vpn);
        }
コード例 #3
0
 public async Task DSICDriveCanBeDisconnectedAsync()
 => await ConnectionTestsAsync.CanBeDisconnectedAsync(DSICDrive);
コード例 #4
0
 public async Task VPN_DSICCanBeDisconnectedAsync()
 => await ConnectionTestsAsync.CanBeDisconnectedAsync(VPN_DSIC);