public void ShouldCreateTest() { TableMappingAttribute tableMappingAttribute; tableMappingAttribute = new TableMappingAttribute(); Assert.IsNotNull(tableMappingAttribute); tableMappingAttribute.TableName = "x"; Assert.AreEqual("x", tableMappingAttribute.TableName); tableMappingAttribute.SchemaName = "y"; Assert.AreEqual("y", tableMappingAttribute.SchemaName); tableMappingAttribute.IsView = true; Assert.AreEqual(true, tableMappingAttribute.IsView); }
public SqlExpressionVisitor(TableMappingAttribute tableMappingAttribute, ISqlNuance sqlNuance, IUnitOfWork unitOfWork, IDictionary<string, ITacticParameter> tacticParameters) { if ((object)tableMappingAttribute == null) throw new ArgumentNullException(nameof(tableMappingAttribute)); if ((object)sqlNuance == null) throw new ArgumentNullException(nameof(sqlNuance)); if ((object)unitOfWork == null) throw new ArgumentNullException(nameof(unitOfWork)); if ((object)tacticParameters == null) throw new ArgumentNullException(nameof(tacticParameters)); this.tableMappingAttribute = tableMappingAttribute; this.sqlNuance = sqlNuance; this.unitOfWork = unitOfWork; this.tacticParameters = tacticParameters; }