コード例 #1
0
 private void AddAndRespondToNewVariableAssignment()
 {
     if (!DoesVariableAlreadyExistInDb())
     {
         variableRepo.AddVariable(assignment.AssignmentVariable, assignment.AssignmentValue);
         Console.WriteLine(dialog.SaveNewVariableResponse(assignment.AssignmentVariable, assignment.AssignmentValue.ToString()));
     }
     else
     {
         Console.WriteLine(dialog.ErrorNewVariableResponse(assignment.AssignmentVariable));
     }
 }