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

            Assert.Equal(user, user1);
        }
예제 #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);
        }