BusinessLogic.Tests.UnitTests.LogicTests.UsersTests.FirstTimeAuthenticatorTests.CreateGamingGroupAndSendEmailConfirmationTests.ItReturnsANewlyRegisteredUserResult C# (CSharp) Method

ItReturnsANewlyRegisteredUserResult() private method

private ItReturnsANewlyRegisteredUserResult ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task ItReturnsANewlyRegisteredUserResult()
        {
            var actualResult = await firstTimeAuthenticator.CreateGamingGroupAndSendEmailConfirmation(applicationUser, registrationSource);

            Assert.That(actualResult.GamingGroupId, Is.EqualTo(expectedNewlyCreatedGamingGroupResult.NewlyCreatedGamingGroup.Id));
            Assert.That(actualResult.GamingGroupName, Is.EqualTo(expectedNewlyCreatedGamingGroupResult.NewlyCreatedGamingGroup.Name));
            Assert.That(actualResult.PlayerId, Is.EqualTo(expectedNewlyCreatedGamingGroupResult.NewlyCreatedPlayer.Id));
            Assert.That(actualResult.PlayerName, Is.EqualTo(expectedNewlyCreatedGamingGroupResult.NewlyCreatedPlayer.Name));
            Assert.That(actualResult.UserId, Is.EqualTo(applicationUser.Id));
        }
    }