BusinessLogic.Tests.UnitTests.LogicTests.SecurityTests.LinkedPlayedGameValidatorTests.ValidateTests.CreateApplicationLinkages C# (CSharp) Method

CreateApplicationLinkages() private method

private CreateApplicationLinkages ( string sourceApplicationName, string sourceEntityId, bool alsoAddExpectedOne = false ) : List
sourceApplicationName string
sourceEntityId string
alsoAddExpectedOne bool
return List
        private List<PlayedGameApplicationLinkage> CreateApplicationLinkages(string sourceApplicationName, string sourceEntityId, bool alsoAddExpectedOne = false)
        {
            var linkages = new List<PlayedGameApplicationLinkage>
            {
                new PlayedGameApplicationLinkage
                {
                    ApplicationName = sourceApplicationName,
                    EntityId = sourceEntityId,
                }
            };

            if (alsoAddExpectedOne)
            {
                linkages.Add(new PlayedGameApplicationLinkage
                {
                    ApplicationName = _expectedApplicationName,
                    EntityId = _expectedEntityId,
                });
            }

            return linkages;
        }