BusinessLogic.Tests.UnitTests.LogicTests.NemesesTests.NemesisHistoryRetrieverTests.GetRecentNemesisChangesTests.BuildNemesisItem C# (CSharp) Méthode

BuildNemesisItem() private static méthode

private static BuildNemesisItem ( int nemesisPlayerId, string nemesisPlayerName, int minionPlayerId, string minionPlayerName, int lossPercentage, int daysAgo ) : Nemesis
nemesisPlayerId int
nemesisPlayerName string
minionPlayerId int
minionPlayerName string
lossPercentage int
daysAgo int
Résultat Nemesis
        private static Nemesis BuildNemesisItem(
            int nemesisPlayerId, 
            string nemesisPlayerName, 
            int minionPlayerId, 
            string minionPlayerName, 
            int lossPercentage,
            int daysAgo)
        {
            return new Nemesis
            {
                NemesisPlayerId = nemesisPlayerId,
                NemesisPlayer = new Player
                {
                    Name = nemesisPlayerName
                },
                MinionPlayerId = minionPlayerId,
                MinionPlayer = new Player
                {
                    Name = minionPlayerName
                },
                LossPercentage = lossPercentage,
                DateCreated = DateTime.UtcNow.AddDays(-1 * daysAgo)
            };
        }