public void TestWithAPMCancel() { var storage = new SqlDataStorage(ConnectionString); string sql = "Select * from parameter"; storage.ReadToCollectionWithAPM(sql, new ParameterInfoCreator<string>(), null, new TestBackgroudCollection<ParameterInfo<string>>()); storage.Cancellation.Cancel(); }