public void type_comment_type_by_category_get_list_returns_comment_types_in_list() { List <CommentType> newTypeList = new List <CommentType>(); Mock <IBusinessEngineFactory> mockBusinessEngineFactory = new Mock <IBusinessEngineFactory>(); mockBusinessEngineFactory.Setup(mock => mock.GetBusinessEngine <ICommentTypeBusinessEngine>() .GetTypesByCategory("Dummy")).Returns(newTypeList); TypeService service = new TypeService(mockBusinessEngineFactory.Object); List <CommentType> lookup_ret_val = service.GetCommentTypeListByCategory("Dummy"); Assert.IsTrue(lookup_ret_val is List <CommentType>); }