Ejemplo n.º 1
0
        private static void TestServersEFE(TestingContext context, int count)
        {
            var servers = new List <Server>(count);

            for (var i = 0; i < count; ++i)
            {
                servers.Add(new Server {
                    Name     = "name_" + i,
                    Platform = Platform.Arm,
                });
            }

            // Exception thrown here
            context.BulkInsert(servers, options => {
                options.Log = s => Console.WriteLine(s);
            });
        }