Пример #1
0
        public void GetUserByRefreshToken_WhenCalled_GetUserByRefreshToken()
        {
            var refreshToken = "refreshToken";
            var user         = new User("userId", "organizationId");

            _repo.Setup(x => x.GetUserByRefreshToken(refreshToken, default))
            .ReturnsAsync(user);

            var result = _sut.GetUserByRefreshToken(refreshToken, default).Result;

            Assert.That(result, Is.EqualTo(user));
        }