private void InitFakes() { mockPeepService = Mock.Of <IPeepService>( p => p.GetPeeps(It.IsAny <string>()) == testPeeps); stubRequest = Mock.Of <HttpRequestBase>( r => r.Headers == new System.Net.WebHeaderCollection { { "X-Requested-With", "XMLHttpRequest" } } && r.Form == testForm); stubContext = Mock.Of <HttpContextBase>( c => c.Request == stubRequest); }
private void InitFakes() { mockPeepService = Mock.Of <IPeepService>( p => p.GetPhoto(It.IsAny <int>()) == testImageBytes); }
public HomeController(IPeepService peepService) { this.peepService = peepService; }
public ImageController(IPeepService peepService) { this.peepService = peepService; }