Stores options for the test service.
 /// <summary>
 /// Initializes a new instance of the TestService type. Once started,
 /// the service will listen on the provided parameters' socket.
 /// </summary>
 /// <param name="serviceOptions">The service options to use.</param>
 public TestService(TestServiceOptions serviceOptions)
 {
     _serviceOptions = serviceOptions;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the TestRun type.
 /// </summary>
 /// <param name="serviceOptions">The service options to use.</param>
 /// <param name="runOptions">The test run options to apply.</param>
 public TestRun(TestServiceOptions serviceOptions, TestRunOptions runOptions)
 {
     _testServiceOptions = serviceOptions;
     TestService = new TestService(_testServiceOptions);
     Options = runOptions;
 }
 /// <summary>
 /// Initializes a new instance of the test service.
 /// </summary>
 /// <param name="options">The test service options.</param>
 public TestServiceEngine(TestServiceOptions options)
 {
     ServerName    = options.MachineName;
     Port          = options.Port;
     ShutdownDelay = options.ShutdownDelay;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the TestRun type.
 /// </summary>
 /// <param name="serviceOptions">The test service options to use.</param>
 public TestRun(TestServiceOptions serviceOptions)
     : this(serviceOptions, new TestRunOptions())
 {
 }
 /// <summary>
 /// Initializes a new instance of the TestService type. Once started,
 /// the service will listen on the provided parameters' socket.
 /// </summary>
 /// <param name="serviceOptions">The service options to use.</param>
 public TestService(TestServiceOptions serviceOptions)
 {
     _serviceOptions = serviceOptions;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the TestRun type.
 /// </summary>
 /// <param name="serviceOptions">The test service options to use.</param>
 public TestRun(TestServiceOptions serviceOptions) : this(serviceOptions, new TestRunOptions())
 {
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the TestRun type.
 /// </summary>
 /// <param name="serviceOptions">The service options to use.</param>
 /// <param name="runOptions">The test run options to apply.</param>
 public TestRun(TestServiceOptions serviceOptions, TestRunOptions runOptions)
 {
     _testServiceOptions = serviceOptions;
     TestService         = new TestService(_testServiceOptions);
     Options             = runOptions;
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the test service.
 /// </summary>
 /// <param name="options">The test service options.</param>
 public TestServiceEngine(TestServiceOptions options)
 {
     ServerName = options.MachineName;
     Port = options.Port;
     ShutdownDelay = options.ShutdownDelay;
 }