public async void Update_ShowsCorrectView() { Repository.Setup(v => v.GetByIdAsync(1)).ReturnsAsync(VenueGenerator.Create()); var result = await Controller.Edit(1); Assert.IsType <ViewResult>(result); var viewResult = result as ViewResult; Assert.Null(viewResult.ViewName); }