public void AccountMapperToDTOTest() { Account account = new Account { AccountID = 1, Balance = 100, FirstName = "FName1", LastName = "LName1", Type = AccountType.BASE }; AccountDTO accountDTO = AccountMapper.MapAccountToDTO(account); Assert.That(accountDTO.ToString(), Is.EqualTo(account.ToString())); }
private void button1_Click(object sender, System.Windows.RoutedEventArgs e) { AccountDTO dto = gridAccounts.SelectedItem as AccountDTO; MessageBox.Show(dto.ToString()); }