public void should_call_underyling_when_added()
        {
            const string key = "{Test}";
            Func <Response <string> > func = () => new OkResponse <string>("test)");

            _placeholders.Add(key, func);
            _basePlaceholders.Verify(p => p.Add(key, func), Times.Once);
        }
 public Response Add(string key, Func <Response <string> > func)
 => _placeholders.Add(key, func);
Esempio n. 3
0
        public void should_return_ok_when_added()
        {
            var result = _placeholders.Add("{Test}", () => new OkResponse <string>("test"));

            result.IsError.ShouldBeFalse();
        }