예제 #1
0
        public async Task UpgradeStudentToTutorAsync_ShouldUpdateUserRoleToTutorAndReturnUpdatedUser()
        {
            //ARRANGE
            _tutorRepositoryMock.Setup(_tutorRepositoryMock => _tutorRepositoryMock.UserProfileUpdateAsync(user)).Returns(Task.FromResult(user));

            //ACT
            await _sut.UpgradeStudentToTutorAsync(user);


            //ASSERT
            Assert.AreEqual("Tutor", user.Role);
        }