public void CallNotifyOrderTest() { var proxy = new WebStoreNotificationsClient(); proxy.SignalRUrl = STR_SignalRUrl; // Simulate Fox object var handler = new WebStoreNotificationsHandler(); proxy.Start(handler); var notification = new WebStoreOrderNotification { CustomerId = 10, CustomerName = "Rick Strahl", OrderAmount = 100.10M, OrderNumber = "d33ads3asdasd" }; proxy.NotifyOrder(notification); Thread.Sleep(2000); //Assert.IsTrue(WaitForHandlerDone(handler, 3), "Request timed out"); //proxy.Stop(); }
public void OnNotifyOrder(WebStoreOrderNotification notification) { Console.WriteLine("Handler: Notified Order : " + notification); }