public void OnTestFixtureSetUp() { appHost = new OperationTestsAppHost(); appHost.Init(); var dummyServiceType = GetType(); appHost.Metadata.Add(dummyServiceType, typeof(GetCustomer), typeof(GetCustomerResponse)); appHost.Metadata.Add(dummyServiceType, typeof(GetCustomers), typeof(GetCustomersResponse)); appHost.Metadata.Add(dummyServiceType, typeof(StoreCustomer), null); operationControl = new OperationControl { HttpRequest = new MockHttpRequest { PathInfo = "", RawUrl = "http://localhost:4444/metadata" }, MetadataConfig = ServiceEndpointsMetadataConfig.Create(""), Format = Format.Json, HostName = "localhost", RequestMessage = "(string)", ResponseMessage = "(HttpWebResponse)", Title = "Metadata page", OperationName = "operationname", MetadataHtml = "<p>Operation</p>" }; }
public void OnTestFixtureSetUp() { appHost = new OperationTestsAppHost(); appHost.Init(); #if NETCORE appHost.Start(Config.ListeningOn); #endif var dummyServiceType = GetType(); appHost.Metadata.Add(dummyServiceType, typeof(GetCustomer), typeof(GetCustomerResponse)); appHost.Metadata.Add(dummyServiceType, typeof(GetCustomers), typeof(GetCustomersResponse)); appHost.Metadata.Add(dummyServiceType, typeof(StoreCustomer), null); operationControl = new OperationControl { HttpRequest = new MockHttpRequest {PathInfo = "", RawUrl = "http://localhost:4444/metadata"}, MetadataConfig = ServiceEndpointsMetadataConfig.Create(""), Format = Format.Json, HostName = "localhost", RequestMessage = "(string)", ResponseMessage = "(HttpWebResponse)", Title = "Metadata page", OperationName = "operationname", MetadataHtml = "<p>Operation</p>" }; }
public void OnTestFixtureSetUp() { _appHost = new OperationTestsAppHost(); _appHost.Init(); _operationControl = new OperationControl { HttpRequest = new MockHttpRequest {PathInfo = "", RawUrl = "http://localhost:4444/metadata"}, MetadataConfig = ServiceEndpointsMetadataConfig.Create(""), Format = Format.Json, HostName = "localhost", RequestMessage = "(string)", ResponseMessage = "(HttpWebResponse)", Title = "Metadata page", OperationName = "operationname", MetadataHtml = "<p>Operation</p>" }; }
public void OnTestFixtureSetUp() { _appHost = new OperationTestsAppHost(); _appHost.Init(); _operationControl = new OperationControl { HttpRequest = new MockHttpRequest { PathInfo = "", RawUrl = "http://localhost:4444/metadata" }, MetadataConfig = ServiceEndpointsMetadataConfig.Create(""), Format = Format.Json, HostName = "localhost", RequestMessage = "(string)", ResponseMessage = "(HttpWebResponse)", Title = "Metadata page", OperationName = "operationname", MetadataHtml = "<p>Operation</p>" }; }