Ejemplo n.º 1
0
        public void BankManagerDao_Update()
        {
            BankManagerDto dto = new BankManagerDto("um", "um", "um", "um", "um");

            dto.Id = "1";
            BankManagerDao dao = new BankManagerDao();

            string result = dao.Update(dto);

            Assert.IsTrue(dto.Id == result);
        }
Ejemplo n.º 2
0
        public void UpdateBankManager()

        {
            BankManagerDao bankManagerDAO = new BankManagerDao();

            BankManagerDto bankManagerDto = new BankManagerDto()

            {
                FirstName = "Arecr",

                LastName = "Frers",

                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);

            bankManagerDto.LastName = "Reded";

            string result = bankManagerDAO.Update(bankManagerDto);

            Assert.IsTrue(result == "1");
        }