/// <inheritdoc/> public void Ranks(ICaller caller) { using IDealData data = InstanceFactory.GetInstance <IDealData>(); if (data.AnyRank()) { return; } IDictionary <string, string> rankDetails = new Dictionary <string, string> { { "A", "Ace" }, { "K", "King" }, { "Q", "Queen" }, { "J", "Jack" }, { "10", "Ten" }, { "9", "Nine" }, { "8", "Eight" }, { "7", "Seven" }, { "6", "Six" }, { "5", "Five" }, { "4", "Four" }, { "3", "Three" }, { "2", "Two" } }; short sortOrder = 1; foreach (KeyValuePair <string, string> rankDetail in rankDetails) { IRank rank = new Rank( id: Guid.NewGuid(), code: rankDetail.Key, name: rankDetail.Value, sortOrder: sortOrder++); data.CreateRank(rank); } }