public ISolutionBuilder WithFile(Action <PlainFile> assign) { var file = new PlainFile(); assign(file); _plainFiles.Add(file); return(this); }
public void Create(PlainFile file) { _fileManager.EnsureDirectoryExists(new FileInfo(file.Path).Directory); _fileManager.WriteAllText(file.Path, file.Text); }