public void CallNotifyItemAddedTest() { var proxy = new WebStoreNotificationsClient(); proxy.SignalRUrl = STR_SignalRUrl; // Simulate Fox object var handler = new WebStoreNotificationsHandler(); proxy.Start(handler); var notification = new WebStoreItemAddedNotification { Sku = "Markdown_Monster", Description = "Markdown Monster Markdown Editor", Discount = 0.0M, Price = 39M, Qty = 1 }; proxy.NotifyItemAdded(notification); Thread.Sleep(2000); //Assert.IsTrue(WaitForHandlerDone(handler, 3), "Request timed out"); //proxy.Stop(); }
public void OnNotifyItemAdded(WebStoreItemAddedNotification notification) { Console.WriteLine("Handler: Notified Item Added : " + notification); }