Example #1
0
        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);
        }
Example #3
0
 public void TestEventDetailsForFeedbackPage_Memory()
 {
     var      controller = new FeedbackRepo(_context);
     Feedback result     = controller.EventDetailsForFeedbackPage("EVNT00047261", 273690, 1);
 }