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); }
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); }