コード例 #1
0
        public async Task AddToTeamAsync_UserFound_ReturnsSuccessResult()
        {
            var sut    = new UserManagerService(TestUserManager.GetSuccessfulManager());
            var result = await sut.AddToTeamAsync(string.Empty, int.MaxValue);

            result.Succeeded.Should().BeTrue();
        }
コード例 #2
0
        public async Task CreateUserAsync_Successful_ReturnsSuccessResult()
        {
            var sut = new UserManagerService(TestUserManager.GetSuccessfulManager());

            var(result, _) = await sut.CreateAsync(string.Empty, string.Empty, int.MaxValue);

            result.Succeeded.Should().BeTrue();
        }