public void AddParameter() { var someGuidType = new SomeIntType(new[] { 21 }); var command = new SqlCommand("SELECT * FROM dbo.Orders WHERE ID = @Id;"); someGuidType.AddParameter(command, "Id"); Assert.Single(command.Parameters); }
public void GetParameter() { var someGuidType = new SomeIntType(new[] { 21 }); var parameter = someGuidType.GetParameter("Id"); Assert.NotNull(parameter.Value); Assert.Equal("IntegerIdList", parameter.TypeName); Assert.Equal("Id", parameter.ParameterName); }