public void AddIdeaCommentReplyTest() { RESTAPIIdeaController apiController = new RESTAPIIdeaController() { DeviceWithDbContext = new RESTAPIDeviceWithDbContext() { DbContext = new IdeaDatabase.DataContext.IdeaDatabaseDataContext() } }; RestAPIAddCommentReplyRequest request = new RestAPIAddCommentReplyRequest() { IdeaCommentID = 1, DiscussionDescription = "test" }; Assert.IsNotNull(apiController.AddIdeaCommentReply(request)); submitIdeaMock.Verify(t => t.InsertCommentReply(It.IsAny <RestAPIAddCommentReplyResponse>(), It.IsAny <int>(), It.IsAny <int>(), It.IsAny <string>())); }