public IOsConfiguration Get( OsConfigurationParametersDTO parameters )
 {
     var dependencies = new OsConfigurationDependenciesDTO
     {
         LinkFactory = this._linkFactory
     };
     return new OsConfiguration( parameters, dependencies );
 }
        public OsConfiguration( OsConfigurationParametersDTO @params, 
                                OsConfigurationDependenciesDTO dependencies )
        {
            this._appInfo = @params.ApplicationInfo;
            this._linkFactory = dependencies.LinkFactory;
            this._osConfigInfo = @params.OsConfigurationInfo;
            this._pathVariablesDTO = @params.PathVariablesDTO;

            this.InitializeLinks();
        }
        private void InitializeTarget()
        {
            var osCfgInfoMock = Mock.Create<IOsConfigurationInfo>();
            Mock.Arrange( () => osCfgInfoMock.Links ).Returns( this._linkInfos );

            var parametersDTO = new OsConfigurationParametersDTO
            {
                ApplicationInfo = Mock.Create<IApplicationInfo>( Behavior.Strict ),
                OsConfigurationInfo = osCfgInfoMock,
                PathVariablesDTO = Mock.Create<PathVariablesDTO>( Behavior.Strict )
            };
            var dependenciesDTO = new OsConfigurationDependenciesDTO
            {
                LinkFactory = this._linkFactoryMock
            };
            this._target = new OsConfiguration( parametersDTO, dependenciesDTO );
        }