Exemplo n.º 1
0
        public void DeleteAttendance_ValidRequest_ShoulReturnOk()
        {
            var attendace = new Attendance();

            _mockRepository.Setup(r => r.GetAttendance(1, _userId)).Returns(attendace);

            var result = _controller.DeleteAttendances(1);

            result.Should().BeOfType <OkNegotiatedContentResult <int> >();
        }
        public void DeleteAttendance_NoAttendanceWithGivenExists_ShouldReturnNotFound()
        {
            var result = _controller.DeleteAttendances(1);

            result.Should().BeOfType <NotFoundResult>();
        }