public async Task CanAddItemTrue_Add_DoesntThrow() { _canAddItemValue.Value = true; var ack = await _restCollection.AddAsync(new { Name = "test" }); }
public static Task <CreatedItemAcknowledgment> AddAsync([NotNull] this IRestCollection collection, object anonymousObj) { return(collection.AddAsync(new RestItemData(anonymousObj))); }
public async Task Item_Add_OnCreatingWasCalled() { await _restCollection.AddAsync(new { Name = "Test" }); Assert.True(_eventChecker.OnCreatingCalled); }