public void GetUserById() { var user = _usedCacheRepository.GetUserById(1); var user1 = _usedCacheRepository.GetUserById(1); Assert.Equal(user, user1); }
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); }