Exemplo n.º 1
0
        public void Details_Should_Return_HttpNotFound()
        {
            //arrange
            var mockContext = new Mock <SchedulerDbContext>();
            var controller  = new ResponseController(mockContext.Object);

            //act
            var result = controller.Details(null) as HttpNotFoundResult;

            //Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(404, result.StatusCode);
        }