Exemplo n.º 1
0
		public void OnTestFixtureSetUp()
		{
			LogManager.LogFactory = new ConsoleLogFactory();

			appHost = new ExampleAppHostHttpListener();
			appHost.Init();
			appHost.Start(ListeningOn);
		}
        public void OnTestFixtureStartUp()
        {
            appHost = new ExampleAppHostHttpListener();
            appHost.Init();
            appHost.Start(ListeningOn);

            System.Console.WriteLine("ExampleAppHost Created at {0}, listening on {1}",
                                     DateTime.Now, ListeningOn);
        }
		public void OnTestFixtureStartUp()
		{
			appHost = new ExampleAppHostHttpListener();
			LogManager.LogFactory = new TestLogFactory();
			appHost.Init();
			appHost.Start(ListeningOn);

			Console.WriteLine("ExampleAppHost Created at {0}, listening on {1}",
				DateTime.Now, ListeningOn);
		}
Exemplo n.º 4
0
		public void OnTestFixtureSetUp()
		{
			appHost = new ExampleAppHostHttpListener();
			appHost.Init();
			appHost.Start(ListeningOn);
		}
Exemplo n.º 5
0
        /// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
		public void Dispose()
		{
			if (appHost == null) return;
			appHost.Dispose();
			appHost = null;
		}
		public void OnTestFixtureTearDown()
		{
			appHost.Dispose();
			appHost = null;
		}
        public void Rapid_Start_Stop_should_not_cause_exceptions()
        {
            var localAppHost = new ExampleAppHostHttpListener();

            for (int i = 0; i < 100; i++)
            {
                localAppHost.Start(GetBaseAddressWithFreePort());
                localAppHost.Stop();
            }
        }
Exemplo n.º 8
0
 public void OnTestFixtureSetUp()
 {
     appHost = new ExampleAppHostHttpListener();
     appHost.Init();
     appHost.Start(Config.AbsoluteBaseUri);
 }
Exemplo n.º 9
0
		public void OnTestFixtureSetUp()
		{
			LogManager.LogFactory = new ConsoleLogFactory();

			appHost = new ExampleAppHostHttpListener();
			appHost.Plugins.Add(new ProtoBufFormat());
			appHost.Init();
			appHost.Start(ListeningOn);
		}
Exemplo n.º 10
0
 public void OnTestFixtureSetup() {
     appHost = new ExampleAppHostHttpListener();
     appHost.Plugins.Add(new ContentTypeCheckerFeature(AcceptedRequests));
     appHost.Init();
     appHost.Start(HostingAt);
 }