private IOsConfigurationFactory CreateOsCfgFactoryMockWhere2ndInfoReturns( IOsConfiguration osConfigMock2 )
        {
            var osCfgFactoryMock = Mock.Create<IOsConfigurationFactory>( Behavior.Strict );

            Mock.Arrange( () => osCfgFactoryMock.Get( Arg.IsAny<IApplicationInfo>(),
                this._osConfigInfos[0], Arg.IsAny<PathVariablesDTO>() ) )
                .Returns( Mock.Create<IOsConfigurationInt>() );
            Mock.Arrange( () => osCfgFactoryMock.Get( Arg.IsAny<IApplicationInfo>(),
                this._osConfigInfos[1], Arg.IsAny<PathVariablesDTO>() ) ).Returns( osConfigMock2 );

            return osCfgFactoryMock;
        }
 private void ResetParameters()
 {
     this._target = null;
     this._isInCloudReturnValue = XeRandom.RandomBool();
     this._isInstalledValue = XeRandom.RandomBool();
     this._isSuitableForOsReturnValue = XeRandom.RandomBool();
     this._osConfigurationMock = Mock.Create<IOsConfiguration>();
 }
 private static IOsConfigurationFactory CreateOsCfgFactoryMockAlwaysReturning( IOsConfiguration osConfigMock )
 {
     var osCfgFactoryMock = Mock.Create<IOsConfigurationFactory>( Behavior.Strict );
     Mock.Arrange( () => osCfgFactoryMock.Get( null, null, null ) ).IgnoreArguments()
         .Returns( osConfigMock );
     return osCfgFactoryMock;
 }