Example #1
0
        public void Initialize_3_Sets_Command_Instance()
        {
            var instance = new SqlCommandWrap();

            instance.Initialize("command text string");
            Assert.IsNotNull(instance.SqlCommandInstance);
        }
Example #2
0
        public void Constructor_4_Sets_Command_Instance()
        {
            var mockConnWrap = _mockRepository.Stub <ISqlConnection>();
            var instance     = new SqlCommandWrap("command text string", mockConnWrap);

            Assert.IsNotNull(instance.SqlCommandInstance);
        }
Example #3
0
        public void Constructor_2_Sets_Command_Instance()
        {
            var newCmd   = new SqlCommand();
            var instance = new SqlCommandWrap(newCmd);

            Assert.AreSame(newCmd, instance.SqlCommandInstance);
        }
Example #4
0
        public void Initialize_4_Sets_Command_Instance()
        {
            var mockConnWrap = NSubstitute.Substitute.For <ISqlConnection>();
            var instance     = new SqlCommandWrap("command text string", mockConnWrap);

            Assert.IsNotNull(instance.SqlCommandInstance);
        }
Example #5
0
        public void Initialize_2_Sets_Command_Instance()
        {
            var instance = new SqlCommandWrap();
            var newCmd   = new SqlCommand();

            instance.Initialize(newCmd);
            Assert.AreSame(newCmd, instance.SqlCommandInstance);
        }
Example #6
0
        public void Constructor_3_Sets_Command_Instance()
        {
            var instance = new SqlCommandWrap("command text string");

            Assert.IsNotNull(instance.SqlCommandInstance);
        }
Example #7
0
        public void Constructor_1_Sets_Command_Instance()
        {
            var instance = new SqlCommandWrap();

            Assert.IsNotNull(instance.SqlCommandInstance);
        }
Example #8
0
        public void Initialize_1_Sets_Command_Instance()
        {
            var instance = new SqlCommandWrap();

            Assert.IsNotNull(instance.SqlCommandInstance);
        }