AsyncPoco.Tests.Tests.InsertRecordsAsync C# (CSharp) Method

InsertRecordsAsync() private method

private InsertRecordsAsync ( int count ) : Task
count int
return Task
		async Task<long> InsertRecordsAsync(int count)
		{
			long lFirst = 0;
			for (int i = 0; i < count; i++)
			{
				var o=CreatePoco();
				await db.InsertAsync("petapoco", "id", o);

				var lc = db.LastCommand;

				if (i == 0)
				{
					lFirst = o.id;
					Assert.AreNotEqual(o.id, 0);
				}
			}

			return lFirst;
		}