434 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);
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 (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 (89)
WebSocketTests.4.1.0.cs (89)
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));
172if (!ScenarioTestHelpers.IsLocalHost())
181ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
205MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
206MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
220client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
224Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
225String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
229Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
230String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
235Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
236String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
244if (!ScenarioTestHelpers.IsLocalHost())
253ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
280MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
281MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
318Assert.True(clientReceiver.ReceiveStreamInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
319String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
330Assert.True(clientReceiver.ReceiveStreamCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
331String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
336Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
337String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
350ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
378MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
379MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
393client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
397Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
398String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
402Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
403String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
408Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
409String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
422ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
445MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
446MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
478Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
483if (!ScenarioTestHelpers.IsLocalHost())
492ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
514MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
515MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
530client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
536Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
541if (!ScenarioTestHelpers.IsLocalHost())
550ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
572MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
573MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
588client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
594Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
599if (!ScenarioTestHelpers.IsLocalHost())
608ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
632MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
633MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
647client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
653Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
658if (!ScenarioTestHelpers.IsLocalHost())
667ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
691MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
692MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
708client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
714Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
719if (!ScenarioTestHelpers.IsLocalHost())
728ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
769ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
810ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
855ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, factory);
889if (!ScenarioTestHelpers.IsLocalHost())
898ScenarioTestHelpers.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);