예제 #1
0
        public void should_return_ok_when_removed()
        {
            var result = _placeholders.Add("{Test}", () => new OkResponse <string>("test"));

            result = _placeholders.Remove("{Test}");
            result.IsError.ShouldBeFalse();
        }
        public void should_call_underyling_when_removed()
        {
            const string key = "{Test}";

            _placeholders.Remove(key);
            _basePlaceholders.Verify(p => p.Remove(key), Times.Once);
        }
 public Response Remove(string key)
 => _placeholders.Remove(key);