public ValueTypeWriter(IDocumentWriter ownerDocument, IMemberWriter memberWriter, ITypeNamesCache typeNamesCache) { this.ownerDocument = ownerDocument; this.memberWriter = memberWriter; this.typeNamesCache = typeNamesCache; }
public ClassBaseWriter(IDocumentWriter ownerDocument, IMemberWriter memberWriter, IBaseTypeMembersWriter baseTypeMembersWriter, ITypeNamesCache typeNamesCache) { this.ownerDocument = ownerDocument; this.memberWriter = memberWriter; this.baseTypeMembersWriter = baseTypeMembersWriter; this.typeNamesCache = typeNamesCache; }
protected override void SetUp() { base.SetUp(); ownerDocument = NewMock<IDocumentWriter>(); objectWriter = NewMock<IObjectWriter>(); writer = new MemberWriter(ownerDocument, objectWriter); }
protected override void SetUp() { base.SetUp(); ownerDocument = NewMock <IDocumentWriter>(); objectWriter = NewMock <IObjectWriter>(); writer = new MemberWriter(ownerDocument, objectWriter); }
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); }
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)); } }
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); }