Exemplo n.º 1
0
 public SocketServer(FitSocket socket, Processor<Cell> service, ProgressReporter reporter, bool suiteSetUpIsAnonymous)
 {
     this.service = service;
     this.reporter = reporter;
     this.socket = socket;
     IMaybeProcessingSuiteSetup = suiteSetUpIsAnonymous;
 }
Exemplo n.º 2
0
 public SocketServer(FitSocket socket, CellProcessor service, ProgressReporter reporter, bool suiteSetUpIsAnonymous)
 {
     this.service  = service;
     this.reporter = reporter;
     this.socket   = socket;
     IMaybeProcessingSuiteSetup = suiteSetUpIsAnonymous;
 }
Exemplo n.º 3
0
        public void Run(string[] CommandLineArguments)
        {
            ParseCommandLineArguments(CommandLineArguments);

            reporter = MakeReporter();

            clientSocket = new FitSocket(new SocketModelImpl(host, port), reporter);
            EstablishConnection();

            var server = new SocketServer(clientSocket, configuration.GetItem<Service>(), reporter, true);
            server.ProcessTestDocuments(WriteResults);

            clientSocket.Close();
            Exit();
        }
Exemplo n.º 4
0
	    public void Run(IList<string> CommandLineArguments)
		{
			ParseCommandLineArguments(CommandLineArguments);

	        reporter = MakeReporter();

			clientSocket = new FitSocket(new SocketModelImpl(host, port), reporter);
			EstablishConnection();

	        var service = new Service(memory);
	        var writer = new StoryTestStringWriter(service)
	            .ForTables(WriteTables)
	            .ForCounts(WriteCounts);

		    var server = new SocketServer(clientSocket, service, reporter, true);
			server.ProcessTestDocuments(writer);

		    Exit();
		}
Exemplo n.º 5
0
 public int Run(string[] commandLineArguments, Configuration configuration, ProgressReporter reporter)
 {
     this.configuration = configuration;
     if(!ParseArgs(configuration, commandLineArguments))
     {
         PrintUsage();
         return ExitCode();
     }
     clientSocket = new FitSocket(new SocketModelImpl(host, port), MakeReporter());
     server = new SocketServer(clientSocket, new Service(configuration), MakeReporter(), false);
     clientSocket.EstablishConnection(Protocol.FormatRequest(pageName, usingDownloadedPaths, suiteFilter));
     AddAssemblies();
     server.ProcessTestDocuments(WriteTestRunner);
     HandleFinalCount(totalCounts);
     clientSocket.Close();
     Exit();
     resultWriter.Close();
     return ExitCode();
 }