public void GetResolutions_ReturnsNotFound()
        {
            _fixItTrackerRepository = new UnitTestsRepository(noResolutions: true);
            _resolutionController   = new ResolutionController(_fixItTrackerRepository, UnitTestsMapping.GetMapper());

            var okResult = _resolutionController.GetResolutions();

            Assert.IsType <NotFoundObjectResult>(okResult.Result);
        }
 void Awake()
 {
     //Singleton
     if(instance == null)
         instance = this;
     else if(this != instance)
             Destroy(gameObject);
     DontDestroyOnLoad(this);
 }
Esempio n. 3
0
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
     DontDestroyOnLoad(gameObject);
 }
Esempio n. 4
0
 public void MountPaths()
 {
     _choosedDevice    = IOs;
     _deviceResolution = ResolutionController.GetResolution();
     _remotePath      += _choosedDevice + "/" + _deviceResolution + "/";
 }
 public ResolutionControllerTest()
 {
     _fixItTrackerRepository = new UnitTestsRepository();
     _resolutionController   = new ResolutionController(_fixItTrackerRepository, UnitTestsMapping.GetMapper());
 }