private static BulkSolutionRepresenterResult RunSingle(BulkSolution solution)
        {
            var stopwatch = Stopwatch.StartNew();

            RunRepresenter(solution);
            stopwatch.Stop();

            return(CreateBulkSolutionRepresenterResult(solution, stopwatch.Elapsed));
        }
Example #2
0
 private static string ReadRepresentation(this BulkSolution solution) =>
 File.ReadAllText(Path.Combine(solution.Directory, "representation.txt"));
Example #3
0
 public static BulkSolutionRepresentation Read(BulkSolution solution) =>
 new BulkSolutionRepresentation(solution.ReadRepresentation());
Example #4
0
 public BulkSolutionRepresenterResult(BulkSolution solution, BulkSolutionRepresentation representation, TimeSpan elapsed) =>
 (Solution, Representation, Elapsed) = (solution, representation, elapsed);
 private static BulkSolutionRepresenterResult CreateBulkSolutionRepresenterResult(BulkSolution solution, TimeSpan elapsed) =>
 new BulkSolutionRepresenterResult(solution, BulkSolutionRepresentationReader.Read(solution), elapsed);
 private static void RunRepresenter(BulkSolution solution) =>
 CSharp.Program.Main(new[] { solution.Slug, solution.Directory, solution.Directory });