private Set SetupSetForSearch(int suffix) { var theme = InsertData(ModelsSetup.GetThemeUnderTest($"SET THEME{suffix}")); var subtheme = ModelsSetup.GetSubthemeUnderTest($"SET SUBTHEME{suffix}"); subtheme.Theme = theme; subtheme = InsertData(subtheme); var set = ModelsSetup.GetSetForSearch(suffix); set.SetId = suffix; set.Theme = theme; set.Subtheme = subtheme; set.ThemeGroup = InsertData(new ThemeGroup { Value = $"SET THEMEGROUP{suffix}" }); set.PackagingType = InsertData(new PackagingType { Value = $"SET PACKAGINGTYPE{suffix}" }); set.Category = InsertData(new Category { Value = $"SET CATEGORY{suffix}" }); set.Tags.Add(InsertData(new Tag { Value = $"SET TAG{suffix}" })); return(InsertData(set)); }