Example #1
0
        public void ClothesSizeGroup_ToString()
        {
            const string   expectedGroupName   = "M (EU 72/74, RU 156/158)";
            const SizeType sizeType            = SizeType.American;
            var            sizeGroupMainDomain = SizeGroupData.SizeGroupMainDomains.First();

            string sizeBaseGroupName = sizeGroupMainDomain.GetBaseGroupName(sizeType);
            string sizeGroupName     = SizeNaming.GetGroupName(sizeType, sizeGroupMainDomain.Sizes);

            Assert.Equal(expectedGroupName, sizeBaseGroupName);
            Assert.Equal(expectedGroupName, sizeGroupName);
        }
Example #2
0
 /// <summary>
 /// Получить имя группы размеров по базовому типу
 /// </summary>
 public string GetBaseGroupName(SizeType sizeType) =>
 SizeNaming.GetGroupName(sizeType, Sizes);