Example #1
0
        public void DeleteBankClient()
        {
            BankClientDao bankManagerDAO = new BankClientDao();

            BankClientDto bankManagerDto = new BankClientDto()

            {
                FirstName = "Serik",

                LastName = "Shulembekov",

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

                CreatedTime = DateTime.Now,

                ApplicationClientType = ApplicationClientType.BankClient,

                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));
        }
        public void BankClientsDao_Delete()
        {
            BankClientDao dao = new BankClientDao();

            dao.Remove("1");
        }