|
|
@ -19,20 +19,19 @@ namespace AOC2021.Test
|
|
|
|
Console.WriteLine($"Testing {request.Day} Part A, Test data");
|
|
|
|
Console.WriteLine($"Testing {request.Day} Part A, Test data");
|
|
|
|
if (!string.IsNullOrEmpty(request.Answer.Day_A_Test))
|
|
|
|
if (!string.IsNullOrEmpty(request.Answer.Day_A_Test))
|
|
|
|
response.Answer.Day_A_Test = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = test, Version = AOCVersion.A, IgnoreLogMessages = true }).Answer.ToString();
|
|
|
|
response.Answer.Day_A_Test = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = test, Version = AOCVersion.A, IgnoreLogMessages = true }).Answer.ToString();
|
|
|
|
Console.WriteLine(response.Answer.Day_A_Test);
|
|
|
|
|
|
|
|
Console.WriteLine($"Testing {request.Day} Part A, Input data");
|
|
|
|
Console.WriteLine($"Testing {request.Day} Part A, Input data");
|
|
|
|
if (!string.IsNullOrEmpty(request.Answer.Day_A_Input))
|
|
|
|
if (!string.IsNullOrEmpty(request.Answer.Day_A_Input))
|
|
|
|
response.Answer.Day_A_Input = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = input, Version = AOCVersion.A, IgnoreLogMessages = true }).Answer.ToString();
|
|
|
|
response.Answer.Day_A_Input = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = input, Version = AOCVersion.A, IgnoreLogMessages = true }).Answer.ToString();
|
|
|
|
Console.WriteLine(response.Answer.Day_A_Input);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Console.WriteLine($"Testing {request.Day} Part B, Test data");
|
|
|
|
Console.WriteLine($"Testing {request.Day} Part B, Test data");
|
|
|
|
if (!string.IsNullOrEmpty(request.Answer.Day_B_Test))
|
|
|
|
if (!string.IsNullOrEmpty(request.Answer.Day_B_Test))
|
|
|
|
response.Answer.Day_B_Test = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = test, Version = AOCVersion.B, IgnoreLogMessages = true }).Answer.ToString();
|
|
|
|
response.Answer.Day_B_Test = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = test, Version = AOCVersion.B, IgnoreLogMessages = true }).Answer.ToString();
|
|
|
|
Console.WriteLine(response.Answer.Day_B_Test);
|
|
|
|
|
|
|
|
Console.WriteLine($"Testing {request.Day} Part B, Input data");
|
|
|
|
Console.WriteLine($"Testing {request.Day} Part B, Input data");
|
|
|
|
if (!string.IsNullOrEmpty(request.Answer.Day_B_Input))
|
|
|
|
if (!string.IsNullOrEmpty(request.Answer.Day_B_Input))
|
|
|
|
response.Answer.Day_B_Input = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = input, Version = AOCVersion.B, IgnoreLogMessages = true }).Answer.ToString();
|
|
|
|
response.Answer.Day_B_Input = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = input, Version = AOCVersion.B, IgnoreLogMessages = true }).Answer.ToString();
|
|
|
|
Console.WriteLine(response.Answer.Day_B_Input);
|
|
|
|
|
|
|
|
return response;
|
|
|
|
return response;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -50,7 +49,6 @@ namespace AOC2021.Test
|
|
|
|
day = (AOCDay)(IAOCService)Activator.CreateInstance(x);
|
|
|
|
day = (AOCDay)(IAOCService)Activator.CreateInstance(x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Console.WriteLine($"Retrieving route for {route}. Found {day}");
|
|
|
|
|
|
|
|
return (AOCDay)day;
|
|
|
|
return (AOCDay)day;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|