Beispiel #1
0
        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)));
 }
Beispiel #3
0
        public async Task Item_Add_OnCreatingWasCalled()
        {
            await _restCollection.AddAsync(new { Name = "Test" });

            Assert.True(_eventChecker.OnCreatingCalled);
        }