private void CheckValidNames(string prefix, string suffix) { foreach (var validName in NamesHelper.GetValidNames(random, new Configurations.NameRules { Prefix = prefix, Suffix = suffix, Type = specificNameRulesService.NameRulesType })) { specificNameRulesService.IsNameValid(validName.Name, prefix, suffix).Should().Be(true, $"Name '{validName}' is valid"); specificNameRulesService.GetNameWords(validName.Name, prefix, suffix).SequenceEqual(validName.Words).Should().Be(true); } }