BusinessLogic.Tests.UnitTests.LogicTests.UsersTests.GamingGroupInviteConsumerTests.AddNewUserToGamingGroupTests.ItReturnsTheNewlyRegisteredUserResult C# (CSharp) Method

ItReturnsTheNewlyRegisteredUserResult() private method

private ItReturnsTheNewlyRegisteredUserResult ( ) : void
return void
        public void ItReturnsTheNewlyRegisteredUserResult()
        {
            BuildDataContextMock(true, true, true);

            var actualResult = gamingGroupInviteConsumer.AddNewUserToGamingGroup(currentUser.Id, invitationId);

            Assert.That(actualResult.GamingGroupId, Is.EqualTo(expectedGamingGroup.Id));
            Assert.That(actualResult.GamingGroupName, Is.EqualTo(expectedGamingGroup.Name));
            Assert.That(actualResult.PlayerId, Is.EqualTo(expectedPlayer.Id));
            Assert.That(actualResult.PlayerName, Is.EqualTo(expectedPlayer.Name));
            Assert.That(actualResult.UserId, Is.EqualTo(currentUser.Id));
        }
    }