public dynamic Status() { var controllerService = new StatusControllerService(); var model = controllerService.GetStatusModel(); return(_routes.View["Views/Status.cshtml", model]); }
public void should_request_status_with_HEAD() { var acousticBrainzExchange = new Mock <IAcousticbrainzExchange>(); acousticBrainzExchange.Setup(abs => abs.GetStatus()).Returns("200(OK)"); var statusControllerService = new StatusControllerService(acousticBrainzExchange.Object); Assert.That(statusControllerService.GetStatusModel().AcousticbrainzStatus, Is.EqualTo("200(OK)")); }