public static FileScenario Create(Action<FileScenarioDefinition> configure) { var directory = Path.GetTempPath().AppendRandomPath(); var fileSystem = new FileSystem(); fileSystem.CreateDirectory(directory); var definition = new FileScenarioDefinition(directory); configure(definition); return new FileScenario(directory, fileSystem); }
protected override void configure(FileScenarioDefinition scenario) { scenario.Asset(BaseFileName, BaseContents); }
protected virtual void configure(FileScenarioDefinition fileScenario) { }