コード例 #1
0
        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()));
        }
コード例 #2
0
        private void button1_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            AccountDTO dto = gridAccounts.SelectedItem as AccountDTO;

            MessageBox.Show(dto.ToString());
        }