public static TAGFileConverter ReadTAGFileFullPath(string fileName, bool treatAsJohnDoeMachine = false) { var converter = new TAGFileConverter(); using var fs = new FileStream(fileName, FileMode.Open, FileAccess.Read); converter.ExecuteLegacyTAGFile(fileName, fs, Guid.NewGuid(), treatAsJohnDoeMachine); return(converter); }
public static TAGFileConverter ReadTAGFile(string fileName, Guid assetUid, bool isJohnDoe) { var converter = new TAGFileConverter(); using var fs = new FileStream(Path.Combine("TestData", "TAGFiles", fileName), FileMode.Open, FileAccess.Read); converter.ExecuteLegacyTAGFile(fileName, fs, assetUid, isJohnDoe); return(converter); }
public static TAGFileConverter ReadTAGFile(string subFolder, string fileName, bool treatAsJohnDoeMachine = false) { var converter = new TAGFileConverter(); var fn = Path.Combine("TestData", "TAGFiles", subFolder, fileName); using var fs = new FileStream(fn, FileMode.Open, FileAccess.Read); converter.ExecuteLegacyTAGFile(fileName, fs, Guid.NewGuid(), treatAsJohnDoeMachine); return(converter); }