public void DeleteResultItemsTest() { var resultRepository = new ResultRepository(); var resultId = Guid.NewGuid(); }
private void GetProfileCredentials(Guid resultId) { try { var resultRepository = new ResultRepository(); var user = resultRepository.GetUserByResult(resultId); var test = resultRepository.GetTestByResult(resultId); var profileRepository = new ProfileRepository(); var profile = profileRepository.GetProfile(resultId); resultIdTextBox.Text = resultId.ToString(); userIdTextBox.Text = Convert.ToString(user.Id); userTextBox.Text = user.FirstName + " " + user.LastName + " " + user.MiddleName; if (user.Gender) { genderTextBox.Text = "М"; } else { genderTextBox.Text = "Ж"; } birthDateTextBox.Text = user.BirthDate.ToString("dd.MM.yyyy"); testIdTextBox.Text = Convert.ToString(test.Id); codeNameTextBox.Text = test.CodeName; profileTextBox.Text = profile.Body; } catch (Exception exception) { MessageBox.Show(exception.Message); } }