예제 #1
0
		public void CreateOutputParameter_PassingType_ReturnsOutputParameterWithCorrectType() {
			var provider = A.Fake<IProvider>();
			var dataSource = new DataSource(provider);

			var parameter = dataSource.CreateOutputParameter("myParamter", DbType.Binary);
			Assert.AreEqual("myParamter", parameter.ParameterName);
			Assert.AreEqual(DbType.Binary, parameter.DbType);
			Assert.AreEqual(ParameterDirection.Output, parameter.Direction);
		}