public SwiftTranslator(Poco2SwiftType configuration, ITypeFilter filter, DocumentationCache documentation, IAppDomainProxy appDomain) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (filter == null) { throw new ArgumentNullException("filter"); } if (documentation == null) { throw new ArgumentNullException("documentation"); } if (appDomain == null) { throw new ArgumentNullException("appDomain"); } _configuration = configuration; _filter = filter; _documentation = documentation; _appDomain = appDomain; InitPredefinedMapTypes(); InitExternalTypes(); }
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); }