コード例 #1
0
ファイル: TestWebAPITest.cs プロジェクト: leloulight/LucentDb
        public void Insert_Should_Insert_A_Test()
        {
            _repository
            .Setup(it => it.Insert(It.IsAny <Int32>(), It.IsAny <Int32?>(), It.IsAny <Int32?>(), It.IsAny <String>(), It.IsAny <String>(), It.IsAny <Boolean>()))
            .Returns <Int32, Int32?, Int32?, String, String, Boolean>((testTypeId, projectId, groupId, name, testValue, isActive) =>
            {
                _repositoryList.Add(new  Test(testTypeId, projectId, groupId, name, testValue, isActive));
            });

            //TODO insert values
            _target.Insert(new Test(testTypeId, projectId, groupId, name, testValue, isActive));
            //Assert.AreEqual(11, _repositoryList.Count());
            //TODO fail until we update the test above
            Assert.Fail();
        }