426 references to ScenarioTestHelpers
Binding.Custom.IntegrationTests (3)
Binding.Http.IntegrationTests (15)
Binding.ReliableSession.IntegrationTests (15)
Binding.Tcp.IntegrationTests (10)
Binding.WS.FederationHttp.IntegrationTests (3)
Client.ChannelLayer.IntegrationTests (19)
Client.ClientBase.IntegrationTests (35)
ClientBaseTests.4.0.0.cs (16)
52ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
99ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
147ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
195ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
270ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client, factory);
347ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client, factory);
359TimeSpan timeout = ScenarioTestHelpers.TestTimeout;
426ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client, factory);
476ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client, factory);
527ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client, factory);
577ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, (ICommunicationObject)client);
631ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, (ICommunicationObject)client);
680ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, (ICommunicationObject)client);
717ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
752ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
808ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
Client.ExpectedExceptions.IntegrationTests (26)
ExpectedExceptionTests.4.1.0.cs (16)
45ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
82ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)setupHostServiceProxy, setupHostFactory);
124ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
143ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
177ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
216ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
254if ((task as IAsyncResult).AsyncWaitHandle.WaitOne(ScenarioTestHelpers.TestTimeout))
260throw new TimeoutException(String.Format("The call to the Service did not complete within the alloted time of: {0}", ScenarioTestHelpers.TestTimeout));
266ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
306if ((task as IAsyncResult).AsyncWaitHandle.WaitOne(ScenarioTestHelpers.TestTimeout))
312throw new TimeoutException(String.Format("The call to the Service did not complete within the alloted time of: {0}", ScenarioTestHelpers.TestTimeout));
318ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
371ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
419ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
467ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
646ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Client.TypedClient.IntegrationTests (18)
Contract.Data.IntegrationTests (4)
Contract.Fault.IntegrationTests (8)
Contract.Message.IntegrationTests (6)
Contract.Service.IntegrationTests (49)
ServiceContractTests.4.0.0.cs (20)
49Assert.True(waitEvent.WaitOne(ScenarioTestHelpers.TestTimeout), "AsyncCallback was not called.");
59ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
96Assert.True(waitEvent.WaitOne(ScenarioTestHelpers.TestTimeout), "AsyncCallback was not called.");
107ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
142Assert.True(waitEvent.WaitOne(ScenarioTestHelpers.TestTimeout), "AsyncCallback was not called.");
153ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
190Assert.True(waitEvent.WaitOne(ScenarioTestHelpers.TestTimeout), "AsyncCallback was not called.");
201ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
247ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
285ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
303binding.OpenTimeout = ScenarioTestHelpers.TestTimeout;
324ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
338}).Wait(ScenarioTestHelpers.TestTimeout);
377ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
391}).Wait(ScenarioTestHelpers.TestTimeout);
409binding.CloseTimeout = ScenarioTestHelpers.TestTimeout;
428ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
442}).Wait(ScenarioTestHelpers.TestTimeout);
478ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
492}).Wait(ScenarioTestHelpers.TestTimeout);
ServiceContractTests.4.1.0.cs (28)
53ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
89ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
124ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
161ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
198ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
212}).Wait(ScenarioTestHelpers.TestTimeout);
226}).Wait(ScenarioTestHelpers.TestTimeout);
290ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
346ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
383ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
419ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
454ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
491ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
528ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
565ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
602ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
616}).Wait(ScenarioTestHelpers.TestTimeout);
630}).Wait(ScenarioTestHelpers.TestTimeout);
666ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
690binding.CloseTimeout = ScenarioTestHelpers.TestTimeout;
691binding.SendTimeout = ScenarioTestHelpers.TestTimeout;
754ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1,
780binding.CloseTimeout = ScenarioTestHelpers.TestTimeout;
781binding.SendTimeout = ScenarioTestHelpers.TestTimeout;
844ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1,
870binding.CloseTimeout = ScenarioTestHelpers.TestTimeout;
871binding.SendTimeout = ScenarioTestHelpers.TestTimeout;
935ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1,
Contract.XmlSerializer.IntegrationTests (20)
dotnet-svcutil.xmlserializer.IntegrationTests (20)
Encoding.Encoders.IntegrationTests (6)
Encoding.MessageVersion.IntegrationTests (7)
Extensibility.MessageEncoder.IntegrationTests (6)
Extensibility.WebSockets.IntegrationTests (81)
WebSocketTests.4.1.0.cs (81)
38MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
39MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
77Assert.True(clientReceiver.ReceiveStreamInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
78String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
89Assert.True(clientReceiver.ReceiveStreamCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
90String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
95Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
96String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
109ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
134MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
135MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
148client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
152Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
153String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
157Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
158String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
163Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
164String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
177ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
201MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
202MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
216client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
220Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
221String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
225Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
226String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
231Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
232String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
245ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
272MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
273MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
310Assert.True(clientReceiver.ReceiveStreamInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
311String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
322Assert.True(clientReceiver.ReceiveStreamCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
323String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
328Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
329String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
342ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
370MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
371MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
385client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
389Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
390String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
394Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
395String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
400Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
401String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
414ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
438MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
439MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
471Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
481ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
504MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
505MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
520client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
526Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
536ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
559MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
560MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
575client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
581Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
591ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
616MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
617MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
631client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
637Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
647ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
672MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
673MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
689client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
695Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
705ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
746ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
787ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
832ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, factory);
872ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
ScenarioTests.Common.Tests (8)
Security.TransportSecurity.IntegrationTests (67)
Https\ClientCredentialTypeTests.4.1.0.cs (6)
92ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
156ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
198ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
227ScenarioTestHelpers.RunBasicEchoTest(basicHttpBinding, Endpoints.Https_DigestAuth_Address, "BasicHttpBinding - Digest auth ", credentials);
238ScenarioTestHelpers.RunBasicEchoTest(basicHttpBinding, Endpoints.Https_NtlmAuth_Address, "BasicHttpBinding with NTLM authentication", null);
252ScenarioTestHelpers.RunBasicEchoTest(binding, Endpoints.Https_NtlmAuth_Address, "BasicHttpBinding with IntegratedWindowsAuthentication authentication and Ntlm endpoint", null);
Https\HttpsTests.4.1.0.cs (14)
62ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
248MyX509CertificateValidator myX509CertificateValidator = new MyX509CertificateValidator(ScenarioTestHelpers.CertificateIssuerName);
267ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
308ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
346ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
396ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
447ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
474MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
475MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
507ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
534MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
535MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
553MyX509CertificateValidator myX509CertificateValidator = new MyX509CertificateValidator(ScenarioTestHelpers.CertificateIssuerName);
572ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);