Exemplo n.º 1
0
        public void CreateRemoveStateItemCmd_Should_Create_SqlCommand_With_Right_Parameters(object lockId)
        {
            var helper = new SqlCommandHelper(SqlCommandTimeout);

            var cmd = helper.CreateRemoveStateItemCmd(SqlStatement, SessionId, lockId);

            VerifyBasicsOfSqlCommand(cmd);
            VerifySessionIdParameter(cmd);
            VerifyLockCookieParameter(cmd, lockId);
            Assert.Equal(2, cmd.Parameters.Count);
        }