public CardRepositoryTest()
        {
            var cardServiceMock     = new CardServiceMockFactory().Mock();
            var cardNumberGenerator = new CardNumberGeneratorMockFactory().MockObject();

            _testDataGenerator = new TestDataGenerator(cardServiceMock.Object, cardNumberGenerator);

            _context = SqlContextMock.GetSqlContext();

            _cardRepository = new CardRepository(_context, GetMemoryCache(null));

            _card = _context.Cards.First();
            _user = _context.Users.FirstOrDefault(u => u.UserName == "*****@*****.**");
        }
 public UserRepositoryTest()
 {
     _userRepository = new UserRepository(SqlContextMock.GetSqlContext());
 }