var testServer = new Tester();
var service1 = new ServiceHost(testServer, new Uri(string.Format("http://localhost:{0}", TestServerPort)));

var ep = service1.AddServiceEndpoint(typeof(TestingContract), binding, string.Format("http://localhost:{0}/S1", TestServerPort));
ep.Behaviors.Add(new WebHttpBehavior());

// konfiguracja punktu przechwytywania dla naszego Firewalla Usugi
service1.Authorization.ServiceAuthorizationManager = new ServiceFirewall(); 

var cp = service1.AddServiceEndpoint(typeof(ImContract), binding, string.Format("http://localhost:{0}/Control", TestServerPort));
cp.Behaviors.Add(new WebHttpBehavior());
