예제 #1
0
        public static async Task <PollPostResultViewModel> TestPollPost()
        {
            var pollController = new PollController(_pollService);

            var pollPost = new PollPostViewModel
            {
                poll_description = "This is the question",
                options          = new List <string> {
                    "First Option", "Second Option", "Third Option"
                }
            };

            var result = await pollController.Post(pollPost);

            return(result);
        }