Ejemplo n.º 1
0
        public void SetUp()
        {
            _swaggerDocumentationAssemblyTools = MockRepository.GenerateMock <ISwaggerDocumentationAssemblyTools>();
            _swaggerDocumentationCreator       = MockRepository.GenerateMock <ISwaggerDocumentationCreator>();
            _jsonSerializer = MockRepository.GenerateMock <IJsonSerializer>();

            _swaggerApiDocumentation = new SwaggerApiDocumentation(_swaggerDocumentationAssemblyTools, _swaggerDocumentationCreator, _jsonSerializer, new TestControllerTypeProvider());
        }
		public void SetUp()
		{
			_swaggerDocumentationAssemblyTools = MockRepository.GenerateMock<ISwaggerDocumentationAssemblyTools>();
			_swaggerDocumentationCreator = MockRepository.GenerateMock<ISwaggerDocumentationCreator>();
			_jsonSerializer = MockRepository.GenerateMock<IJsonSerializer>();

			_swaggerApiDocumentation = new SwaggerApiDocumentation<TestController>( _swaggerDocumentationAssemblyTools, _swaggerDocumentationCreator, _jsonSerializer );
		}
 internal SwaggerApiDocumentation(
     ISwaggerDocumentationAssemblyTools swaggerDocumentationAssemblyTools,
     ISwaggerDocumentationCreator swaggerDocumentationCreator,
     IJsonSerializer jsonSerializer)
 {
     _swaggerDocumentationAssemblyTools = swaggerDocumentationAssemblyTools;
     _swaggerDocumentationCreator       = swaggerDocumentationCreator;
     _jsonSerializer = jsonSerializer;
 }
 internal SwaggerApiDocumentation(
     ISwaggerDocumentationAssemblyTools swaggerDocumentationAssemblyTools,
     ISwaggerDocumentationCreator swaggerDocumentationCreator,
     IJsonSerializer jsonSerializer, IBaseApiControllerTypeProvider baseApiControllerTypeProvider)
 {
     _swaggerDocumentationAssemblyTools = swaggerDocumentationAssemblyTools;
     _swaggerDocumentationCreator       = swaggerDocumentationCreator;
     _jsonSerializer = jsonSerializer;
     _baseApiControllerTypeProvider = baseApiControllerTypeProvider;
 }
 public void SetUp()
 {
     _swaggerDocumentationAssemblyTools = new SwaggerDocumentationAssemblyTools(new TestAssemblyProvider());
 }
 public void SetUp()
 {
     _swaggerDocumentationAssemblyTools = new SwaggerDocumentationAssemblyTools();
 }
		public void SetUp()
		{
			_swaggerDocumentationAssemblyTools = new SwaggerDocumentationAssemblyTools();
		}