private string BuildBuildInfoForFile(string filename) { var resultString = EmbeddedResourceLoader.Load(Assembly.GetExecutingAssembly(), $"{GetType().Namespace}.MockData.{filename}"); var appVeyorAdapter = new AppVeyorAdapter(); appVeyorAdapter.Initialize(Substitute.For <IBuildServerWatcher>(), Substitute.For <ISettingsSource>(), id => true); var buildInfo = appVeyorAdapter.ExtractBuildInfo(_project, resultString).ToList(); return(YamlSerialize(buildInfo)); }