public async Task GetPoll_ShouldNotFindPoll() { // Arrange CreatePoll(); // Act var result = await _pollController.GetPoll(int.MaxValue); // Assert Assert.IsInstanceOfType(result.Result, typeof(NotFoundResult)); }
public void GetPoll_ShouldReturnCorrectPoll() { var controller = new PollController(GetTestPoll()); var result = controller.GetPoll(2); Assert.IsInstanceOfType(result, typeof(DbQuery <ActivityDTO>)); }