示例#1
0
        public async Task ItSignsInTheNewUserIfRegisteringFromTheWebApplication()
        {
            await userRegisterer.RegisterUser(newUser);

            signInManagerMock.AssertWasCalled(mock => mock.SignInAsync(
                                                  Arg <ApplicationUser> .Matches(user => user.Email == newUser.EmailAddress && user.UserName == newUser.UserName),
                                                  Arg <bool> .Is.Equal(false),
                                                  Arg <bool> .Is.Equal(false)));
        }