Beispiel #1
0
        public void DeleteEntityBadUrlReturnsStatusCode405()
        {
            //Setup
            var mService = new Mock <ITeacherService>();

            mService.Setup(mock => mock.DeleteEntity(It.IsAny <int>()));

            //Action
            var controller = new TeacherController(mService.Object);

            //Assert
            Assert.Equal("405", controller.DeleteEntityBadUrl().StatusCode.ToString());
        }