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