Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PingTaskUnitTests"/> class.
        /// </summary>
        /// <param name="testOutputHelper">The test output helper.</param>
        /// <autogeneratedoc />
        public PingTaskUnitTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
        {
            var commonServices = CommonServices.CreateInstance(TestLoggerFactory, "PingTaskUnitTests");

            _pingService = new PingService(commonServices);
            _pingTask    = new PingService.PingTaskImpl(commonServices);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ArpServiceUnitTests"/> class.
        /// </summary>
        /// <param name="testOutputHelper">The test output helper.</param>
        /// <autogeneratedoc />
        public ArpServiceUnitTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
        {
            var          commonServices = CommonServices.CreateInstance(TestLoggerFactory, "ArpServiceUnitTests");
            IPingService pingService    = new PingService.PingService(commonServices);

            _arpService = new ArpService(commonServices, pingService);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PingTaskIntegrationTests"/> class.
        /// </summary>
        /// <param name="testOutputHelper">The test output helper.</param>
        /// <autogeneratedoc />
        public PingTaskIntegrationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
        {
            _commonServices = CommonServices.CreateInstance(TestLoggerFactory, "PingTaskUnitTests");

            _pingTask = new PingService.PingTaskImpl(_commonServices);
            _pingTask.OnPingReplyTask += PingReplyEventHandler;
            _pingOptions = new PingOptions(_pingTask.Ttl, _pingTask.DoNotFragment);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PingServiceIntegrationTests"/> class.
        /// </summary>
        /// <param name="testOutputHelper">The test output helper.</param>
        /// <autogeneratedoc />
        public PingServiceIntegrationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
        {
            var commonServices = CommonServices.CreateInstance(TestLoggerFactory, "PingServiceIntegrationTests");

            _pingService = new PingService(commonServices);
            _pingService.OnPingReplyService += PingReplyEventHandler;
            _networkingSystem = new NetworkingSystem(TestLoggerFactory.CreatePureLogger <NetworkingSystem>());
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ArpServiceIntegrationTests"/> class.
        /// </summary>
        /// <param name="testOutputHelper">The test output helper.</param>
        /// <autogeneratedoc />
        public ArpServiceIntegrationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
        {
            _commonServices = CommonServices.CreateInstance(TestLoggerFactory, "ArpServiceIntegrationTests");

            IPingService pingService = new PingService.PingService(_commonServices);

            _arpService = new ArpService(_commonServices, pingService);

            _defaultGatewayIPAddressSubnet = _commonServices.NetworkingSystem.GetDefaultGatewayAddressSubnet();
        }
        public PingServiceRxIntegrationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
        {
            _commonServices = CommonServices.CreateInstance(TestLoggerFactory, "PingServiceRxIntegrationTests");

            _pingServiceRx = new PingServiceRx(_commonServices);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="CommonNetworkServicesIntegrationTests"/> class.
        /// </summary>
        /// <param name="testOutputHelper">The test output helper.</param>
        /// <autogeneratedoc />
        public CommonNetworkServicesIntegrationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
        {
            var commonServices = CommonServices.CreateInstance(TestLoggerFactory, typeof(CommonNetworkServicesIntegrationTests));

            _commonNetworkServices = CommonNetworkServices.CreateInstance(TestLoggerFactory, commonServices);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CommonNetworkServicesUnitTests"/> class.
 /// </summary>
 /// <param name="testOutputHelper">The test output helper.</param>
 /// <autogeneratedoc />
 public CommonNetworkServicesUnitTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
 {
     _commonServices = CommonServices.CreateInstance(TestLoggerFactory, typeof(CommonNetworkServicesUnitTests));
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceUnitTests"/> class.
 /// </summary>
 /// <param name="testOutputHelper">The test output helper.</param>
 /// <autogeneratedoc />
 public DeviceUnitTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
 {
     _commonServices = CommonServices.CreateInstance(TestLoggerFactory, "DeviceUnitTests");
 }