public void GetDbAnonymousValue_Test() { DbAnonymousValue <int> value = new DbAnonymousValue <int>(); DbAutoFillHelper.FillObjectFromDataReader(value, _dataReader); Assert.AreEqual(value.GetValue(), ANONYMOUS_SET_VALUE); }
public void AddConcreteAnonymousValue() { DbAnonymousValue <string> expected = new DbAnonymousValue <string>("ParameterName", "AString"); DbAutoFillHelper.AddParameterWithValue(command, expected); Assert.AreEqual(expected.Alias, command.Parameters[0].ParameterName); Assert.AreEqual(expected.GetValue(), command.Parameters[0].Value); }