private static void Main(string[] args) { var appHost = new AppSelfHost(); appHost.Init(); appHost.Start("http://127.0.0.1:1234/"); Thread.Sleep(2500); var client = new JsonServiceClient("http://127.0.0.1:1234/") { AlwaysSendBasicAuthHeader = true, UserName = "******", Password = "******" }; var post1 = client.Post(new TestRequest()); var post2 = client.Post(new TestRequest()); var response = "First response: {0}, Second Response: {1}".Fmt(post1, post2); Console.Out.WriteLine(response); Console.Read(); }
public void TestFixtureSetUp() { appHost = new AppSelfHost(); appHost.Init().Start(BaseUrl); }