469 references to ScenarioTestHelpers
Binding.Custom.IntegrationTests (3)
Binding.Http.IntegrationTests (15)
Binding.ReliableSession.IntegrationTests (15)
Binding.Tcp.IntegrationTests (10)
Binding.Tcp.TransactionFlow.IntegrationTests (14)
NetTcpTransactionFlowTests.cs (14)
62ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
102ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
139ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
175ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
217ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
269ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
307ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
340ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
374ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
412ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
445ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
479ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
521ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
556ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Binding.WS.FederationHttp.IntegrationTests (3)
Binding.WS.TransactionFlow.IntegrationTests (12)
WSHttpTransactionFlowTests.cs (12)
60ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
100ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
137ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
174ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
216ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
258ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
296ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
333ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
366ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
406ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
448ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
497ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Binding.WS.TransportWithMessageCredentialSecurity.IntegrationTests (16)
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 (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));
178ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
202MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
203MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
217client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
221Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
222String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
226Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
227String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
232Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
233String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
247ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
274MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
275MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
312Assert.True(clientReceiver.ReceiveStreamInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
313String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
324Assert.True(clientReceiver.ReceiveStreamCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
325String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
330Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
331String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
344ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
371MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
372MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
386client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
390Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
391String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
395Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
396String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
401Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
402String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout));
415ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
438MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
439MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
471Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
482ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
504MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
505MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
520client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
526Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
537ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
559MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
560MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
575client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
581Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
592ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
616MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
617MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
631client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
637Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
648ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
672MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
673MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
689client.UploadData(ScenarioTestHelpers.CreateInterestingString(123));
695Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
706ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
747ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
788ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
833ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, factory);
873ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
ScenarioTests.Common.Tests (8)
Security.TransportSecurity.IntegrationTests (68)
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)
61ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
246MyX509CertificateValidator myX509CertificateValidator = new MyX509CertificateValidator(ScenarioTestHelpers.CertificateIssuerName);
265ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
305ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
342ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
391ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
441ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
468MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
469MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
501ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
528MaxReceivedMessageSize = ScenarioTestHelpers.SixtyFourMB,
529MaxBufferSize = ScenarioTestHelpers.SixtyFourMB,
547MyX509CertificateValidator myX509CertificateValidator = new MyX509CertificateValidator(ScenarioTestHelpers.CertificateIssuerName);
566ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);