private static async Task Funky(IConfigurationSection appKeys, ILogger logger) { BlogPostTests bpt = new BlogPostTests(); var items = bpt.CreateFakePosts().ToList(); Console.WriteLine(items[0]); }
private static async Task Stage3(CloudStorageContext cloudAcct, MicroBlogConfiguration.MicroBlogOptions allOpts, ILogger logger) { BlogPostTests bpt = new BlogPostTests(); var FakePosts = bpt.CreateFakePosts().ToList(); BlogArticleService bas = new BlogArticleService(cloudAcct, allOpts, logger); var tasks = new List <Task <ICompletePost> >(); FakePosts.ForEach((a) => tasks.Add(bas.Add(a))); Task.WaitAll(tasks.ToArray()); //await bas.Add(FakePosts[0]); //await bas.Add(FakePosts[1]); //await bas.Add(FakePosts[2]); //await bas.Add(FakePosts[3]); //await bas.Add(FakePosts[4]); //await bas.Add(FakePosts[5]); //await bas.Add(FakePosts[9]); }