Exemplo n.º 1
0
        public dynamic Status()
        {
            var controllerService = new StatusControllerService();
            var model             = controllerService.GetStatusModel();

            return(_routes.View["Views/Status.cshtml", model]);
        }
Exemplo n.º 2
0
        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)"));
        }