public async Task <ActionResult <Feedback> > GetEventDetailsById(string eventId, int empId, int userType) { var mytask = Task.Run(() => _repo.EventDetailsForFeedbackPage(eventId, empId, userType)); var feedbackInfo = await mytask; return(feedbackInfo); }
public void TestEventDetailsForFeedbackPage() { string expectedEventName = "Bags of Joy Distribution"; var controller = new FeedbackRepo(_Context); Feedback result = controller.EventDetailsForFeedbackPage("EVNT00047261", 273690, 1); Assert.Equal(expectedEventName, result.EventName); }
public void TestEventDetailsForFeedbackPage_Memory() { var controller = new FeedbackRepo(_context); Feedback result = controller.EventDetailsForFeedbackPage("EVNT00047261", 273690, 1); }