public static async Task <GherkinFile> For(Feature feature, Stream stream) { var file = new GherkinFile(stream); await file.Write(feature); return(file); }
private async Task CreateFileFor(Feature feature) => _file = await GherkinFile.For(feature, _stream);