Beispiel #1
0
        public void SetUp()
        {
            var fileName = Path.GetTempPath() + Guid.NewGuid();

            _db     = new LiteDatabase(fileName);
            _server = new StatServer(_db);
            _server.Start("http://+:8081/");
        }
Beispiel #2
0
        public void SetUp()
        {
            client = new Client.Client("http://127.0.0.1:8080/");
            server = new StatServer();
            server.ClearDatabaseAndCache();
            var prefix = "http://+:8080/";

            new Thread(() => server.Start(prefix)).Start();
        }
        private static void RunServer(Options options)
        {
            using (var server = new StatServer(1))
            {
                server.Start(options.Prefix);

                System.Console.ReadKey(true);
            }
        }
 public void SetUp()
 {
     server.Start("http://+:8080/");
 }
Beispiel #5
0
 public void SetUp()
 {
     server = new StatServer();
     server.Start(Prefix);
 }