コード例 #1
0
 private void ResetParameters()
 {
     this._target = null;
     this._isInCloudReturnValue = XeRandom.RandomBool();
     this._isInstalledValue = XeRandom.RandomBool();
     this._isSuitableForOsReturnValue = XeRandom.RandomBool();
     this._osConfigurationMock = Mock.Create<IOsConfiguration>();
 }
コード例 #2
0
        private void InitializeTarget()
        {
            var parameters = new ModelParametersDTO
            {
                ApplicationInfo = Arg.IsAny<IApplicationInfo>(),
                IsInstalled = this._isInstalledValue,
                OsConfigurationInfo = Mock.Create<IOsConfigurationInfo>()
            };

            var dependencies = new ModelDependenciesDTO
            {
                LinkFactory = null,
                OsConfigurationFactory = this.CreateOsConfigFactoryMock(),
                OsChecker = this.CreateOsCheckerMock()
            };
            this._target = new Model( parameters, dependencies );
        }