public static void PopulateDatabase() { using var context = new CurrencyContext(); context.AddRange( new TestEntity1 { Currency = Currency.UsDollars }, new TestEntity1 { Currency = Currency.Euros }, new TestEntity1 { Currency = Currency.PoundsSterling }, new TestEntity2 { Currency = Currency.UsDollars }, new TestEntity2 { Currency = Currency.Euros }, new TestEntity2 { Currency = Currency.PoundsSterling }, new TestEntity3 { Currency = Currency.UsDollars }, new TestEntity3 { Currency = Currency.Euros }, new TestEntity3 { Currency = Currency.PoundsSterling }); context.SaveChanges(); }