public void Operation_CanBeCancelled()
        {
            var operation = new UpdateOperation("test", "1234");

            Assert.False(operation.IsCancelled);
            operation.Cancel();
            Assert.True(operation.IsCancelled);
        }
        public async Task ExecuteRemote_ReturnsNull_WhenCancelled()
        {
            var client = GetMockClient();

            MockHandler.AddResponse(HttpStatusCode.OK, new IdEntity {
                Id = "1234", StringValue = "foo"
            });

            var sut = new UpdateOperation("test", "1234")
            {
                Item = testObject
            };

            sut.Cancel();
            var actual = await sut.ExecuteOperationOnRemoteServiceAsync(client);

            Assert.Null(actual);
        }