public NullWriter(Poco2SwiftType configuration) : base(configuration, true) { _writer = new StringWriter(); WriteFilePreamble(_writer); }
public void TestInitialize() { var configuration = new Poco2SwiftType { imports = new ModuleType[0], skiptypes = new SkipType[0], externaltypes = new ExternalType[0], enumerations = new EnumType[0], classes = new ClassType[0], }; var filter = new NullTypeFilter(); var documentation = new DocumentationCache(); var callback = new NullProxyCallback(); _proxyUtils = new NullProxyUtils { Callback = callback }; _appDomain = new NullAppDomain { Utils = _proxyUtils }; _translator = new SwiftTranslator(configuration, filter, documentation, _appDomain); _writer = new NullWriter(configuration); }