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

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

            Assert.Equal(user, user1);
        }