public CallbackParameter(string fieldName, int rowIndex)
        {
            ArgumentChecker.ThrowIfNullOrEmpty(fieldName, "fieldName");
            ArgumentChecker.ThrowIfLessThanZero(rowIndex, "rowIndex");

            this.fieldName = fieldName;
            this.rowIndex  = rowIndex;
        }
        private NoteType(int id, string name)
        {
            ArgumentChecker.ThrowIfLessThanZero(id, "id");
            ArgumentChecker.ThrowIfNullOrEmpty(name, "name");

            this.id   = id;
            this.name = name;
        }
Exemplo n.º 3
0
        private BatchType(int id, string name, bool isDateRangeDependant)
        {
            ArgumentChecker.ThrowIfLessThanZero(id, "id");
            ArgumentChecker.ThrowIfNullOrEmpty(name, "name");

            this.id   = id;
            this.name = name;
            this.isDateRangeDependant = isDateRangeDependant;
        }
Exemplo n.º 4
0
 public Date YearsAgo(int numberOfYears)
 {
     ArgumentChecker.ThrowIfLessThanZero(numberOfYears, "numberOfYears");
     return(new Date(dateTime.AddYears(-numberOfYears)));
 }
Exemplo n.º 5
0
 public Date MonthsAfter(int numberOfMonths)
 {
     ArgumentChecker.ThrowIfLessThanZero(numberOfMonths, "numberOfMonths");
     return(new Date(dateTime.AddMonths(numberOfMonths)));
 }