public override void AwakeFromNib() { if (Site == null || !Site.DesignMode) { service = MyIoCContainer.Get <ISomeService>(); } }
public MyController(IntPtr handle) : base(handle) { if (Site == null || !Site.DesignMode) { service = MyIoCContainer.Get <ISomeService>(); } }
public MyController(IntPtr handle) : base(handle) { service = AppDelegate.IsInDesignerView ? new Moq <ISomeService>() : MyIoCContainer.Get <ISomeService>(); }