private void AttestationThemeSetup() { foreach (AttestationTheme item in DictionaryMocks.AttestationThemeMocks) { AttestationTheme newAttestationTheme = (AttestationTheme)item.Clone(); newAttestationTheme.Id = null; listAttestationTheme.Add(newAttestationTheme); } for (int i = 0; i < listAttestationTheme.Count; i++) { int id = (int)dictionaryStorage.AttestationThemeAddOrUpdate(listAttestationTheme[i]).Result; listAttestationTheme[i].Id = id; } }