public void CommonNetworkServices_ServiceHost() { _commonServices.Should().NotBeNull().And.Subject.Should().BeAssignableTo <ICommonServices>(); var commonNetworkServices = CommonNetworkServices.CreateInstance(TestLoggerFactory, _commonServices); commonNetworkServices.ServiceHostStatus.Should().Be(ServiceHostStatus.Stopped); }
public void CommonNetworkServices_Constructor_CommonServices_Null() { _commonServices.Should().NotBeNull().And.Subject.Should().BeAssignableTo <ICommonServices>(); Func <ICommonNetworkServices> fx = () => CommonNetworkServices.CreateInstance(TestLoggerFactory, (ICommonServices)null); fx.Should().Throw <ArgumentNullException>().And.ParamName.Should().Be("commonServices"); }
public void CommonNetworkServices_Constructor() { _commonServices.Should().NotBeNull().And.Subject.Should().BeAssignableTo <ICommonServices>(); var commonNetworkServices = CommonNetworkServices.CreateInstance(TestLoggerFactory, _commonServices); commonNetworkServices.Should().NotBeNull().And.Subject.Should().BeAssignableTo <ICommonNetworkServices>(); }
/// <summary> /// Initializes a new instance of the <see cref="NetworkGatewayIntegrationTests"/> class. /// </summary> /// <param name="testOutputHelper">The test output helper.</param> /// <autogeneratedoc /> public NetworkGatewayIntegrationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { _commonNetworkServices = CommonNetworkServices.CreateInstance(TestLoggerFactory, "NetworkGatewayIntegrationTests"); var networkingSystem = new NetworkingSystem(TestLoggerFactory.CreatePureLogger <NetworkingSystem>()); _gatewayIPAddressSubnet = networkingSystem.GetDefaultGatewayAddressSubnet(); }
public void CommonNetworkServices_GetLogPropertyList() { _commonServices.Should().NotBeNull().And.Subject.Should().BeAssignableTo <ICommonServices>(); var commonNetworkServices = CommonNetworkServices.CreateInstance(TestLoggerFactory, _commonServices); commonNetworkServices.GetLogPropertyListLevel(LogLevel.Debug, LoggableFormat.ToLogWithParents).Should() .NotBeNull().And.Subject.Should().BeAssignableTo <IEnumerable <IPureLogPropertyLevel> >(); }
public void CommonNetworkServices_Services() { _commonServices.Should().NotBeNull().And.Subject.Should().BeAssignableTo <ICommonServices>(); var commonNetworkServices = CommonNetworkServices.CreateInstance(TestLoggerFactory, _commonServices); commonNetworkServices.ArpService.Should().NotBeNull().And.Subject.Should().BeAssignableTo <IArpService>(); commonNetworkServices.ProcessRunner.Should().NotBeNull().And.Subject.Should().BeAssignableTo <IProcessRunner>(); commonNetworkServices.FileSystem.Should().NotBeNull().And.Subject.Should().BeAssignableTo <IFileSystem>(); commonNetworkServices.OperationRunner.Should().NotBeNull().And.Subject.Should().BeAssignableTo <IOperationRunner>(); commonNetworkServices.OperatingSystem.Should().NotBeNull().And.Subject.Should().BeAssignableTo <IOperatingSystem>(); commonNetworkServices.PingService.Should().NotBeNull().And.Subject.Should().BeAssignableTo <IPingService>(); }
/// <summary> /// Initializes a new instance of the <see cref="NetworkMapServiceUnitTests"/> class. /// </summary> /// <param name="testOutputHelper">The test output helper.</param> /// <autogeneratedoc /> public NetworkMapServiceUnitTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { var commonNetworkServices = CommonNetworkServices.CreateInstance(TestLoggerFactory, "NetworkMapServiceUnitTests"); _networkMapService = new NetworkMap.NetworkMapService(new Devices.Network.NetworkMap(commonNetworkServices), new DhcpService.DhcpService(commonNetworkServices)); }
/// <summary> /// Initializes a new instance of the <see cref="NetworkDeviceBaseUnitTests"/> class. /// </summary> /// <param name="testOutputHelper">The test output helper.</param> /// <autogeneratedoc /> public NetworkDeviceBaseUnitTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { _commonNetworkServices = CommonNetworkServices.CreateInstance(TestLoggerFactory, "NetworkDeviceBaseUnitTests"); }
/// <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); }