public static void TestEfInsertionExtenstion() { var list = EfInsertionTests.GeneratePosts(); EfInsertionTests.Save(list, false); EfInsertionTests.Save(list); }
public static Task TestEfInsertionExtenstionAsync(CancellationToken cancellationToken = default) { var posts = EfInsertionTests.GeneratePosts(); var blogs = EfInsertionTests.GenerateBlogs(); var t1 = EfInsertionTests.SaveAllAsync(posts, blogs, false, false, cancellationToken); var t2 = EfInsertionTests.SaveAllAsync(posts, blogs, true, false, cancellationToken); return(Task.WhenAll(t1, t2)); }