public void Insert_NewDoc_Success()
        {
            // Arrange

            var bucket = new MockBucket();

            // Act

            var result = bucket.Insert("key", new object());

            // Assert

            Assert.True(result.Success);
            Assert.Equal(ResponseStatus.Success, result.Status);

            Assert.True(bucket.ContainsMock("key"));
        }
        public void Insert_ExistingDoc_KeyExists()
        {
            // Arrange

            var existingObject = new object();
            var bucket         = new MockBucket
            {
                { "key", existingObject }
            };

            // Act

            var result = bucket.Insert("key", new object());

            // Assert

            Assert.False(result.Success);
            Assert.Equal(ResponseStatus.KeyExists, result.Status);

            Assert.True(bucket.TryGetMock("key", out var mockDocument));
            Assert.Equal(existingObject, mockDocument?.Content);
        }