Exemplo n.º 1
0
        public void Setup()
        {
            var innerJsonifier = new Jsonifier();

            _jsonifier = Substitute.For <IJsonifier>();
            _jsonifier
            .ParseJson <List <FetchedQuote> >(Arg.Any <string>())
            .Returns(args => innerJsonifier.ParseJson <List <FetchedQuote> >((string)args[0]));

            _sut = new FetchHandler(_jsonifier);
        }
Exemplo n.º 2
0
 public FetchHandler(IJsonifier jsonifier)
 {
     _jsonifier = jsonifier;
 }