Пример #1
0
        public async Task GetDeviceDataTask()
        {
            var deviceId = "AABBCC000001";

            var factory = NetworkFacadeFactory.Create();

            var devicesResultAsync = await factory.GetDeviceAsync(deviceId);

            Assert.IsNotNull(devicesResultAsync);
        }
Пример #2
0
        public async Task GetPortsDataTask()
        {
            var portId = "1.1.1.1:12";

            var factory = NetworkFacadeFactory.Create();

            var portsResultAsync = await factory.GetPortAsync(portId);

            Assert.IsNotNull(portsResultAsync);
        }
Пример #3
0
        public async Task GetEventsDataTask()
        {
            var eventId = 4;

            var factory = NetworkFacadeFactory.Create();

            var eventsResultAsync = await factory.GetEventAsync(eventId);

            Assert.IsNotNull(eventsResultAsync);
        }
Пример #4
0
        public async Task GetSwitchesDataTask()
        {
            var switchId = "1.1.1.1";

            var factory = NetworkFacadeFactory.Create();

            var switchesResultAsync = await factory.GetSwitchAsync(switchId);

            Assert.IsNotNull(switchesResultAsync);
        }