public void RegisterWithContainer(IDependencyInjectionContainer container) { container.RegisterInstance <IUserInterfaceServices>(this); container.RegisterType <IWindowsFactory, WpfWindowsFactory>(); container.RegisterType <IMessageBox, WpfMessageBox>(); container.RegisterType <IDialogServices, DialogServices>(); }