Esempio n. 1
0
 public ValueTypeWriter(IDocumentWriter ownerDocument, IMemberWriter memberWriter,
     ITypeNamesCache typeNamesCache)
 {
     this.ownerDocument = ownerDocument;
     this.memberWriter = memberWriter;
     this.typeNamesCache = typeNamesCache;
 }
Esempio n. 2
0
 public ValueTypeWriter(IDocumentWriter ownerDocument, IMemberWriter memberWriter,
                        ITypeNamesCache typeNamesCache)
 {
     this.ownerDocument  = ownerDocument;
     this.memberWriter   = memberWriter;
     this.typeNamesCache = typeNamesCache;
 }
Esempio n. 3
0
 public ClassBaseWriter(IDocumentWriter ownerDocument, IMemberWriter memberWriter,
                        IBaseTypeMembersWriter baseTypeMembersWriter, ITypeNamesCache typeNamesCache)
 {
     this.ownerDocument         = ownerDocument;
     this.memberWriter          = memberWriter;
     this.baseTypeMembersWriter = baseTypeMembersWriter;
     this.typeNamesCache        = typeNamesCache;
 }
Esempio n. 4
0
 public ClassBaseWriter(IDocumentWriter ownerDocument, IMemberWriter memberWriter,
     IBaseTypeMembersWriter baseTypeMembersWriter, ITypeNamesCache typeNamesCache)
 {
     this.ownerDocument = ownerDocument;
     this.memberWriter = memberWriter;
     this.baseTypeMembersWriter = baseTypeMembersWriter;
     this.typeNamesCache = typeNamesCache;
 }
Esempio n. 5
0
        protected override void SetUp()
        {
            base.SetUp();

            ownerDocument = NewMock<IDocumentWriter>();
            objectWriter = NewMock<IObjectWriter>();

            writer = new MemberWriter(ownerDocument, objectWriter);
        }
Esempio n. 6
0
        protected override void SetUp()
        {
            base.SetUp();

            ownerDocument = NewMock <IDocumentWriter>();
            objectWriter  = NewMock <IObjectWriter>();

            writer = new MemberWriter(ownerDocument, objectWriter);
        }
Esempio n. 7
0
        protected override void SetUp()
        {
            document              = NewMock <IDocumentWriter>();
            cache                 = NewMock <IValuesCache>();
            memberWriter          = NewMock <IMemberWriter>();
            baseTypeMembersWriter = NewMock <IBaseTypeMembersWriter>();
            typeNamesCache        = NewMock <ITypeNamesCache>();

            writer = new ClassWriter(document, cache, memberWriter, baseTypeMembersWriter, typeNamesCache);
        }
Esempio n. 8
0
        public APIPrinter(PrintOptions options)
        {
            _options    = options;
            _isPrintAll = !(options.PrintTypes | options.PrintFields | options.PrintProperties | options.PrintEvents | options.PrintMethods);

            if (_options.OutputFormat.ToLower().Equals("csv"))
            {
                _writer = new CSVMemberWriter();
            }
            else if (_options.OutputFormat.ToLower().Equals("json"))
            {
                _writer = new JsonMemberWriter();
            }
            else
            {
                _writer = new DefaultMemberWriter();
            }

            if (!string.IsNullOrEmpty(options.OutputFile))
            {
                _writer.SetStreamWriter(new StreamWriter(options.OutputFile));
            }
        }
Esempio n. 9
0
        protected override void SetUp()
        {
            document = NewMock<IDocumentWriter>();
            cache = NewMock<IValuesCache>();
            memberWriter = NewMock<IMemberWriter>();
            baseTypeMembersWriter = NewMock<IBaseTypeMembersWriter>();
            typeNamesCache = NewMock<ITypeNamesCache>();

            writer = new ClassWriter(document, cache, memberWriter, baseTypeMembersWriter, typeNamesCache);
        }