public void Cancel_AttendedGig_ShouldReturnOk() { _mockUnitOfWork.Setup(u => u.Attendances.GetAttendance(1, _userId)) .Returns(new Attendance { GigId = 1, AttendeeId = _userId }); var result = _sut.Cancel(1); result.Should().BeOfType <OkObjectResult>(); }
public void Cancel_NoAttendanceWithGivenIdExists_ShouldReturnNotFound() { var result = _controller.Cancel(1); result.Should().BeOfType <NotFoundResult>(); }