public Modals( IScheduler scheduler, IComponentContext container, IWindowManager windowManager, IModalWindows modalWindows) { _scheduler = scheduler; _modalWindows = modalWindows; _container = container; _windowManager = windowManager; }
public void TestInitialize() { _scheduler = Substitute.For <IScheduler>(); _scheduler.Schedule(Arg.Any <Func <bool?> >()).Returns(c => c.Arg <Func <bool?> >()()); _windowManager = Substitute.For <IWindowManager>(); _modalWindows = Substitute.For <IModalWindows>(); _modal = Substitute.For <IModal>(); var builder = new ContainerBuilder(); builder.Register(c => new WrappedModal(_modal)).AsSelf().SingleInstance(); _container = builder.Build(); }
public AGSModalWindowComponent(IModalWindows modalWindows, IFocusedUI focusedUI, IGameEvents gameEvents) { _modalWindows = modalWindows; _focusedUi = focusedUI; }
public AGSModalWindowComponent(IModalWindows modalWindows, IFocusedUI focusedUI) { _modalWindows = modalWindows; _focusedUi = focusedUI; }