Exemple #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);
		}
		public void OnTestFixtureSetUp()
		{
			appHost = new ExampleAppHostHttpListener();
			appHost.Init();
			appHost.Start(ListeningOn);
		}
Exemple #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();
            }
        }
 public void OnTestFixtureSetUp()
 {
     appHost = new ExampleAppHostHttpListener();
     appHost.Init();
     appHost.Start(Config.AbsoluteBaseUri);
 }
		public void OnTestFixtureSetUp()
		{
			LogManager.LogFactory = new ConsoleLogFactory();

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