public void Test_Users_CreateBankAccount_CA() { try { UserNaturalDTO john = TestHelper.GetJohn(); BankAccountCaPostDTO account = new BankAccountCaPostDTO(john.FirstName + " " + john.LastName, john.Address, "TestBankName", "123", "12345", "234234234234"); BankAccountDTO createAccount = _objectToTest.CreateBankAccountCa(john.Id, account).Result; Assert.True(createAccount.Id.Length > 0); Assert.True(createAccount.UserId == (john.Id)); Assert.True(createAccount.Type == BankAccountType.CA); Assert.True(((BankAccountCaDTO)createAccount).AccountNumber == "234234234234"); Assert.True(((BankAccountCaDTO)createAccount).BankName == "TestBankName"); Assert.True(((BankAccountCaDTO)createAccount).BranchCode == "12345"); Assert.True(((BankAccountCaDTO)createAccount).InstitutionNumber == "123"); } catch (Exception ex) { Assert.True(false, ex.Message); } }