425 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 (25)
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);
215ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
253if ((task as IAsyncResult).AsyncWaitHandle.WaitOne(ScenarioTestHelpers.TestTimeout))
259throw new TimeoutException(String.Format("The call to the Service did not complete within the alloted time of: {0}", ScenarioTestHelpers.TestTimeout));
265ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
305if ((task as IAsyncResult).AsyncWaitHandle.WaitOne(ScenarioTestHelpers.TestTimeout))
311throw new TimeoutException(String.Format("The call to the Service did not complete within the alloted time of: {0}", ScenarioTestHelpers.TestTimeout));
317ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
369ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
416ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
463ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
642ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Client.TypedClient.IntegrationTests (17)
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.MessageInterceptor.IntegrationTests (1)
Extensibility.WebSockets.IntegrationTests (81)
WebSocketTests.4.1.0.cs (81)
37MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
38MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
76Assert.True(clientReceiver.ReceiveStreamInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
77String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
88Assert.True(clientReceiver.ReceiveStreamCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
89String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
94Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
95String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
108ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
133MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
134MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
147client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
151Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
152String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
156Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
157String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
162Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
163String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
176ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
200MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
201MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
215client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
219Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
220String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
224Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
225String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
230Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
231String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
244ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
270MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
271MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
308Assert.True(clientReceiver.ReceiveStreamInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
309String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
320Assert.True(clientReceiver.ReceiveStreamCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
321String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
326Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
327String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
340ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
367MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
368MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
382client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
386Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
387String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
391Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
392String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
397Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
398String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
411ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
434MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
435MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
467Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
477ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
499MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
500MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
515client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
521Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
531ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
553MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
554MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
569client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
575Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
585ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
609MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
610MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
624client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
630Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
640ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
664MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
665MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
681client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
687Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
697ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
737ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
777ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
821ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, factory);
860ScenarioTestHelpers.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);
226ScenarioTestHelpers.RunBasicEchoTest(basicHttpBinding, Endpoints.Https_DigestAuth_Address, "BasicHttpBinding - Digest auth ", credentials);
237ScenarioTestHelpers.RunBasicEchoTest(basicHttpBinding, Endpoints.Https_NtlmAuth_Address, "BasicHttpBinding with NTLM authentication", null);
251ScenarioTestHelpers.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);
473MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
474MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
506ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
532MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
533MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
551MyX509CertificateValidator myX509CertificateValidator = new MyX509CertificateValidator(ScenarioTestHelpers.CertificateIssuerName);
570ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);