Exemple #1
0
        public void FlushOnExecute()
        {
            var user = _usedCacheRepository.GetUserById(2);

            _usedCacheRepository.UpdateUserName(2, "SmartSql");
            var user1 = _usedCacheRepository.GetUserById(2);

            Assert.NotEqual(user, user1);
        }
Exemple #2
0
        public void FlushOnExecute()
        {
            var userId = _usedCacheRepository.Insert(new User {
                UserName = "******", Status = UserStatus.Ok
            });
            var user = _usedCacheRepository.GetUserById(userId);

            _usedCacheRepository.UpdateUserName(userId, "SmartSql");
            var user1 = _usedCacheRepository.GetUserById(userId);

            Assert.NotEqual(user, user1);
        }