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))); }