Inheritance: Controller
        public void FoundNothing()
        {
            var ravenDocStore = MockRepository.GenerateMock<SmsWeb.IRavenDocStore>();
            ravenDocStore.Expect(r => r.GetStore()).Return(DocumentStore);
            var controller = new HomeController { RavenDocStore = ravenDocStore };
            var actionResult = controller.Search(Guid.NewGuid().ToString()) as ViewResult;

            Assert.That(actionResult.ViewName, Is.EqualTo("NoResults"));
        }
        public void FoundSentMessage()
        {
            var ravenDocStore = MockRepository.GenerateMock<SmsWeb.IRavenDocStore>();
            ravenDocStore.Expect(r => r.GetStore()).Return(DocumentStore);
            var controller = new HomeController { RavenDocStore = ravenDocStore };
            var actionResult = controller.Search(_smsId.ToString()) as RedirectToRouteResult;

            Assert.That(actionResult.RouteValues["controller"], Is.EqualTo("SendNow"));
            Assert.That(actionResult.RouteValues["action"], Is.EqualTo("Details"));
            Assert.That(actionResult.RouteValues["requestId"], Is.EqualTo(_smsId.ToString()));
        }