Ejemplo n.º 1
0
        public void PosterService_should_call_handler_on_error()
        {
            bool errorHandlerCalled = false;
            var  httpService        = new MockErrorBinaryHttpService();

            new PosterService(new MockFileSystem(), httpService).Download(url, imagePath, (u, p) => errorHandlerCalled = true);
            Assert.IsTrue(errorHandlerCalled);
        }
Ejemplo n.º 2
0
 public void PosterService_should_call_handler_on_error()
 {
     bool errorHandlerCalled = false;
     var httpService = new MockErrorBinaryHttpService();
     new PosterService(new MockFileSystem(), httpService).Download(url, imagePath, (u, p) => errorHandlerCalled = true);
     Assert.IsTrue(errorHandlerCalled);
 }