public async Task Create() { var myblog = new Blog { Id = 1, Url = "www.google.ie", Posts = new List <Post> { new Post { Id = 1, Title = "Test_1", Content = "test content 1", BlogId = 1 }, new Post { Id = 2, Title = "Test_2", Content = "test content 2", BlogId = 1 } } }; await _context.CreateBlog(myblog); }