/// <summary> /// Initializes any collection properties after deserialization, like next requests for paging. /// </summary> /// <param name="testEntityToInitialize">The <see cref="TestEntity"/> with the collection properties to initialize.</param> private void InitializeCollectionProperties(TestEntity testEntityToInitialize) { }
/// <summary> /// Creates the specified TestEntity using POST. /// </summary> /// <param name="testEntityToCreate">The TestEntity to create.</param> /// <returns>The created TestEntity.</returns> public System.Threading.Tasks.Task <TestEntity> CreateAsync(TestEntity testEntityToCreate) { return(this.CreateAsync(testEntityToCreate, CancellationToken.None)); }
/// <summary> /// Creates the specified TestEntity using POST and returns a <see cref="GraphResponse{TestEntity}"/> object. /// </summary> /// <param name="testEntityToCreate">The TestEntity to create.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> /// <returns>The <see cref="GraphResponse{TestEntity}"/> object of the request.</returns> public System.Threading.Tasks.Task <GraphResponse <TestEntity> > CreateResponseAsync(TestEntity testEntityToCreate, CancellationToken cancellationToken = default) { this.ContentType = CoreConstants.MimeTypeNames.Application.Json; this.Method = HttpMethods.POST; return(this.SendAsyncWithGraphResponse <TestEntity>(testEntityToCreate, cancellationToken)); }