Exemplo n.º 1
0
        public override void BindToEntity(Entity source)
        {
            base.BindToEntity(source);
            pointerService = Services.GetService <IPointerService>();
            var deviceSettings = Services.GetService <IDirectXDeviceSettings>();

            ScreenSize      = new Vector2(deviceSettings.PreferredBackBufferWidth, deviceSettings.PreferredBackBufferHeight);
            keyboardService = Services.GetService <IKeyboardService>();
        }
        public CCBinaryControllerTests()
        {
            var pointerService = new Mock <IPointerService>();

            _pointerService = pointerService.Object;

            var apiSettings = new Mock <IOptions <ApiSetting> >();

            _apiSettings = apiSettings.Object;
        }
Exemplo n.º 3
0
        public NrlsControllerTests()
        {
            var pointerService = new Mock <IPointerService>();

            pointerService.Setup(x => x.GetCachedPointer(It.Is <string>(y => y == "0000000000"), It.IsAny <string>())).Returns(PointerViewModels.ValidFor0000000000);
            pointerService.Setup(x => x.GetCachedPointer(It.Is <string>(y => y == "0000000001"), It.IsAny <string>())).Returns((PointerViewModel)null);
            pointerService.Setup(x => x.GetPointerDocument(It.IsAny <RequestViewModel>(), It.IsAny <PointerViewModel>())).Returns(System.Threading.Tasks.Task.Run(() => FhirBinaries.Html));

            _pointerService = pointerService.Object;
        }
Exemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PointerInputGame" /> class.
        /// </summary>
        public PointerInputGame()
        {
            // Creates a graphics manager. This is mandatory.
            graphicsDeviceManager = new GraphicsDeviceManager(this);

            // Create the pointer manager
            pointerService = new PointerManager(this);

            // Force no vsync and use real timestep to print actual FPS
            graphicsDeviceManager.SynchronizeWithVerticalRetrace = false;
            IsFixedTimeStep = false;

            // Setup the relative directory to the executable directory
            // for loading contents with the ContentManager
            Content.RootDirectory = "Content";
            IsMouseVisible        = true;
        }
 public NrlsController(IPointerService pointerService)
 {
     _pointerService = pointerService;
 }
 public void Dispose()
 {
     _pointerService = null;
     _apiSettings    = null;
 }
Exemplo n.º 7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PointerInputGame" /> class.
        /// </summary>
        public PointerInputGame()
        {
            // Creates a graphics manager. This is mandatory.
            graphicsDeviceManager = new GraphicsDeviceManager(this);

            // Create the pointer manager
            pointerService = new PointerManager(this);

            // Force no vsync and use real timestep to print actual FPS
            graphicsDeviceManager.SynchronizeWithVerticalRetrace = false;
            IsFixedTimeStep = false;

            // Setup the relative directory to the executable directory
            // for loading contents with the ContentManager
            Content.RootDirectory = "Content";
            IsMouseVisible = true;
        }
Exemplo n.º 8
0
 public void Dispose()
 {
     _pointerService = null;
 }
 public BinaryController(IPointerService pointerService, IOptions <ApiSetting> apiSetting)
 {
     _pointerService = pointerService;
     _apiSettings    = apiSetting.Value;
 }