Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Asynchronous]
- [TestMethod]
- public void when_order_details_address_vm_is_composed_it_is_injected_with_the_order_vm()
- {
- var catalog = new TypeCatalog(typeof(OrderVM), typeof(OrderDetailsVM), typeof(OrderHeaderVM), typeof(OrderHeaderAddressVM));
- var container = new CompositionContainer(catalog);
- var orderView = new OrderView();
- XamlInitializerService.SetContainerForElement(orderView, container);
- this.EnqueueUntilLoaded(orderView, () =>
- Assert.AreEqual(orderView.ViewModel, orderView.Header.HeaderAddress.ViewModel.OrderVM));
- TestPanelManager.Instance.TestPanel.Children.Add(orderView);
- }
Add Comment
Please, Sign In to add comment