コード例 #1
0
        public void DeleteBankManager()

        {
            BankManagerDao bankManagerDAO = new BankManagerDao();

            BankManagerDto bankManagerDto = new BankManagerDto()

            {
                FirstName = "Serik",

                LastName = "Shulembekov",

                Email = "*****@*****.**",

                CreatedTime = DateTime.Now,

                ApplicationClientType = ApplicationClientType.BankManager,

                EntityStatus = EntityStatusType.IsActive,

                PasswordHash = "123",
            };

            bankManagerDto.Id = ApplicationUserIdGenerator.GenerateUniqueId(

                bankManagerDto.FirstName, bankManagerDto.LastName,

                bankManagerDto.ApplicationClientType);

            bankManagerDAO.Create(bankManagerDto);

            bankManagerDAO.Remove(bankManagerDto.Id);

            Assert.IsNull(bankManagerDAO.Read(bankManagerDto.Id));
        }
コード例 #2
0
        public void BankManagerDao_Read()
        {
            BankManagerDao dao    = new BankManagerDao();
            var            result = dao.Read();

            foreach (var item in result)
            {
                Debug.WriteLine(item.ToString());
            }
        }
コード例 #3
0
        public void ReadBankManager()

        {
            BankManagerDao bankManagerDAO = new BankManagerDao();

            var res = bankManagerDAO.Read();

            foreach (var item in res)
            {
                Debug.WriteLine(item.ToString());
            }
        }