public void CallProcedureWithDataLargerThanSizeAttribute_ThrowsException()
        {
            // ARRANGE
            const string initialValue = @"123456789012345678901234567890";
            var parameters = new CorrectSizeAttributeStoredProcedure.Parameter
            {
                Value1 = initialValue
            };
            var procedure = new CorrectSizeAttributeStoredProcedure(parameters);

            // ACT
            Context.ExecuteStoredProcedure(procedure);

            // ASSERT
            // Exception should be thrown by now
        }
        public void CallProcedureWithDataSmallerThanSizeAttribute_ResultsInNoLossOfData()
        {
            // ARRANGE
            const string initialValue = @"1234567890";
            var parameters = new CorrectSizeAttributeStoredProcedure.Parameter
            {
                Value1 = initialValue
            };
            var procedure = new CorrectSizeAttributeStoredProcedure(parameters);

            // ACT
            var resultSet = Context.ExecuteStoredProcedure(procedure);
            var result = resultSet.First();

            // ASSERT
            Assert.AreEqual(initialValue, result.Value1);
        }
        public void CallProcedureWithSameSizeAttributeAsData_ResultsInNoLossOfData()
        {
            // ARRANGE
            const string initialValue = @"12345678901234567890";
            var parameters = new CorrectSizeAttributeParameters
            {
                Value1 = initialValue
            };
            var procedure = new CorrectSizeAttributeStoredProcedure(parameters);
            procedure.InitializeFromAttributes();

            // ACT
            var results = Context.ExecuteStoredProcedure(procedure);
            var result = results.First();

            // ASSERT
            Assert.AreEqual(initialValue, result.Value1);
        }
        public void CallProcedureWithDataLargerThanSizeAttribute_ThrowsException()
        {
            // ARRANGE
            const string initialValue = @"123456789012345678901234567890";
            var parameters = new CorrectSizeAttributeParameters
            {
                Value1 = initialValue
            };
            var procedure = new CorrectSizeAttributeStoredProcedure(parameters);
            procedure.InitializeFromAttributes();

            // ACT
            Context.ExecuteStoredProcedure(procedure);
            //var result = results.First();

            // ASSERT
            Assert.Fail();
            //Assert.AreEqual(initialValue, result.Value1);
        }