public void GetUserForCardAccountSuccessfully()
        {
            var content = File.ReadAllText("../../Fixtures/card_account_get_users.json");

            var client = GetMockClient(content);
            var repo = new CardAccountRepository(client.Object);
            var gotUser = repo.GetUserForCardAccount("25d34744-8ef0-46a4-8b18-2a8322933cd1");

            client.VerifyAll();

            Assert.IsNotNull(gotUser);
            Assert.AreEqual("1", gotUser.Id);
        }
        public void GetUserForCardAccountSuccessfully()
        {
            var repo = new CardAccountRepository();
            var userId = "ec9bf096-c505-4bef-87f6-18822b9dbf2c"; //some user created before
            var account = new CardAccount
            {
                UserId = userId,
                Active = true,
                Card = new Card
                {
                    FullName = "Batman",
                    ExpiryMonth = "11",
                    ExpiryYear = "2020",
                    Number = "4111111111111111",
                    Type = "visa",
                    CVV = "123"
                }
            };
            var createdAccount = repo.CreateCardAccount(account);

            var gotUser = repo.GetUserForCardAccount(createdAccount.Id);

            Assert.IsNotNull(gotUser);

            Assert.AreEqual(userId, gotUser.Id);
        }