private IDictionary<string, EmbeddedSpec> readSpecs()
{
var dict = new Dictionary<string, EmbeddedSpec>();
var fileSystem = new FileSystem();
fileSystem.FindFiles(_settings.Root, FileSet.Deep("*.specs.json")).Each(file =>
{
var json = fileSystem.ReadStringFromFile(file);
var response = JsonSerialization.Deserialize<BatchRunResponse>(json);
var fixtures = new Dictionary<string, FixtureModel>();
response.fixtures.Each(x => fixtures.Add(x.key, x));
response.records.Each(rec => dict.Add(rec.specification.path, new EmbeddedSpec(fixtures, rec)));
});
return dict;
}