public void Creation() { var TestObject = new EqualParameter<int>(12, "ID"); Assert.Equal("ID", TestObject.ID); Assert.Equal(12, TestObject.Value); Assert.Equal("@", TestObject.ParameterStarter); Assert.Equal("ID=@ID", TestObject.ToString()); Assert.Equal(DbType.Int32, TestObject.DatabaseType); Assert.Equal(ParameterDirection.Input, TestObject.Direction); Assert.Equal("ID", TestObject.FieldName); Assert.Equal(12, TestObject.InternalValue); IBatch Batch = new Utilities.ORM.Manager.QueryProvider.Manager(Utilities.IoC.Manager.Bootstrapper.ResolveAll<IQueryProvider>()).Batch(TestDatabaseSource); Batch.AddCommand(null, null, "SELECT * FROM TestTable", CommandType.Text, TestObject).Execute(); }
public void Creation() { var TestObject = new EqualParameter <int>(12, "ID"); Assert.Equal("ID", TestObject.ID); Assert.Equal(12, TestObject.Value); Assert.Equal("@", TestObject.ParameterStarter); Assert.Equal("ID=@ID", TestObject.ToString()); Assert.Equal(DbType.Int32, TestObject.DatabaseType); Assert.Equal(ParameterDirection.Input, TestObject.Direction); Assert.Equal("ID", TestObject.FieldName); Assert.Equal(12, TestObject.InternalValue); var Batch = new Utilities.ORM.Manager.QueryProvider.Manager(Utilities.IoC.Manager.Bootstrapper.ResolveAll <IQueryProvider>()).Batch(TestDatabaseSource); Batch.AddCommand(null, null, "SELECT * FROM TestTable", CommandType.Text, TestObject).Execute(); }