public async Task Post_given_valid_dto_returns_CreatedAtAction()
        {
            var dto  = new VoteDTO();
            var repo = new Mock <IVoteRepository>();

            repo.Setup(s => s.CreateAsync(It.IsAny <VoteDTO>())).ReturnsAsync(1);
            var controller = new VotesController(repo.Object);

            var post = await controller.Post(dto);

            Assert.IsType <CreatedAtActionResult>(post.Result);
        }