Пример #1
0
		public void CreateInputOutputParameter_PassingType_ReturnsOutputParameterWithCorrectType() {
			var provider = A.Fake<IProvider>();
			var dataSource = new DataSource(provider);

			var parameter = dataSource.CreateInputOutputParameter("myParamter", DbType.DateTime);
			Assert.AreEqual("myParamter", parameter.ParameterName);
			Assert.AreEqual(DbType.DateTime, parameter.DbType);
			Assert.AreEqual(ParameterDirection.InputOutput, parameter.Direction);
		}