コード例 #1
0
ファイル: Modals.cs プロジェクト: time4vps/vpn-win-app
 public Modals(
     IScheduler scheduler,
     IComponentContext container,
     IWindowManager windowManager,
     IModalWindows modalWindows)
 {
     _scheduler     = scheduler;
     _modalWindows  = modalWindows;
     _container     = container;
     _windowManager = windowManager;
 }
コード例 #2
0
ファイル: ModalsTest.cs プロジェクト: zhenguang/win-app
        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();
        }
コード例 #3
0
 public AGSModalWindowComponent(IModalWindows modalWindows, IFocusedUI focusedUI, IGameEvents gameEvents)
 {
     _modalWindows = modalWindows;
     _focusedUi    = focusedUI;
 }
コード例 #4
0
 public AGSModalWindowComponent(IModalWindows modalWindows, IFocusedUI focusedUI)
 {
     _modalWindows = modalWindows;
     _focusedUi    = focusedUI;
 }