示例#1
0
        public void GetModelVotesTest()
        {
            MockDb.Setup(x => x.Single <int>(It.IsAny <string>(), It.IsAny <object[]>())).Returns(2);
            var results = ModelVote.GetModelVotes(MockDb.Object, 1);

            Assert.AreEqual(2, results.Item);
        }
示例#2
0
 public ReturnResult <int> GetModelVotes(int modelId)
 {
     return(ModelVote.GetModelVotes(Db, modelId));
 }