Exemple #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));
        }
        public void BankManagerDao_Delete()
        {
            BankManagerDao dao = new BankManagerDao();

            dao.Remove("1");
        }