public void Setup() { // Create client this.client = new MessageClient(); this.client.NumberOfMessages = 3; this.client.NumberOfIterations = 1; // Setup service MessageService.EndpointAddress = ListenUri; MessageService.ContractTypes = new List <Type>(); MessageService.CompletionHandle = new EventWaitHandle(false, EventResetMode.AutoReset); }
public void Setup() { // Create client this.client = new MessageClient(); this.client.NumberOfMessages = 3; this.client.NumberOfIterations = 3; // Setup and start service MessageService.EndpointAddress = "amqp:message_queue"; MessageService.ContractTypes = new List <Type>(); MessageService.ContractTypes.Add(typeof(IInteropService)); MessageService.CompletionHandle = new EventWaitHandle(false, EventResetMode.AutoReset); MessageService.IntendedInvocationCount = this.client.NumberOfIterations * this.client.NumberOfMessages * MessageService.ContractTypes.Count; MessageService.StartService(Util.GetCustomBinding()); }