示例#1
0
		public void CreateParameter_CreateParameterWithValue_CheckThatCorrectValueIsSet() {
			var provider = A.Fake<IProvider>();
			var dataSource = new DataSource(provider);
			var parameter = dataSource.CreateParameter("myparameter", "myvalue");
			Assert.AreEqual("myparameter", parameter.ParameterName);
			Assert.AreEqual("myvalue", parameter.Value);
		}
示例#2
0
		public void CreateParameter_CreateParameter_CheckThatCorrectParameterIsCreated() {
			var provider = A.Fake<IProvider>();
			var dataSource = new DataSource(provider);

			var parameter = dataSource.CreateParameter("myparameter", DbType.Guid);
			Assert.AreEqual("myparameter", parameter.ParameterName);
			Assert.AreEqual(DbType.Guid, parameter.DbType);
		}