public HabitMonthlyRecordTestData(DateTime dtBegin, List <UserHabitRecord> habitRecords, int firstMonthRecordCount, int secondMonthRecordCount) : this() { BeginDate = dtBegin; if (habitRecords.Count > 0) { RecordList.AddRange(habitRecords); } ExpectedFirstMonthRecordCount = firstMonthRecordCount; ExpectedSecondMonthRecordCount = secondMonthRecordCount; }
public HabitWeeklyRecordTestData(DateTime bgndate, List <UserHabitRecord> listRecord, int firstWeek, int secondWeek) : this() { BeginDate = bgndate; if (listRecord.Count > 0) { RecordList.AddRange(listRecord); } ExpectedFirstWeekCount = firstWeek; ExpectedSecondWeekCount = secondWeek; }
public void Deserialize(IXunitSerializationInfo info) { String val = info.GetValue <String>("Value"); HabitMonthlyRecordTestData other = JsonSerializer.Deserialize <HabitMonthlyRecordTestData>(val); // CaseID = other.CaseID; BeginDate = other.BeginDate; if (other.RecordList.Count > 0) { RecordList.AddRange(other.RecordList); } ExpectedFirstMonthRecordCount = other.ExpectedFirstMonthRecordCount; ExpectedSecondMonthRecordCount = other.ExpectedSecondMonthRecordCount; }
public void Deserialize(IXunitSerializationInfo info) { String val = info.GetValue <String>("Value"); UserHabitRecordsControllerTestData_WeekNoOfCount other = JsonSerializer.Deserialize <UserHabitRecordsControllerTestData_WeekNoOfCount>(val); // CaseID = other.CaseID; Dow = other.Dow; CompleteCondition = other.CompleteCondition; RecordCount = other.RecordCount; if (other.RecordList.Count > 0) { RecordList.AddRange(other.RecordList); } if (other.ExpectedRuleDateList.Count > 0) { ExpectedRuleDateList.AddRange(other.ExpectedRuleDateList); } }
public void Deserialize(IXunitSerializationInfo info) { String val = info.GetValue <String>("Value"); UserHabitRecordsControllerTestData_DailyNoOfCount other = JsonSerializer.Deserialize <UserHabitRecordsControllerTestData_DailyNoOfCount>(val); CompleteCondition = other.CompleteCondition; if (other.RuleList.Count > 0) { RuleList.AddRange(other.RuleList); } if (other.RecordList.Count > 0) { RecordList.AddRange(other.RecordList); } if (other.ExpectedRecordList.Count > 0) { ExpectedRecordList.AddRange(other.ExpectedRecordList); } }
public UserHabitRecordsControllerTestData_DailyNoOfCount( int completeCondition, List <UserHabitRecord> listRecords, List <UserHabitRule> listRules, List <UserHabitRecord> listExpectedRecords) : this() { CompleteCondition = completeCondition; if (listRules.Count > 0) { RuleList.AddRange(listRules); } if (listRecords.Count > 0) { RecordList.AddRange(listRecords); } if (listExpectedRecords.Count > 0) { ExpectedRecordList.AddRange(listExpectedRecords); } }
public UserHabitRecordsControllerTestData_MonthNoOfCount( int dateInMonth, List <UserHabitRecord> listRecords, List <UserHabitRule> ruleList, int completeCondition, int recordCount, List <DateTime> expectedRuleDate) : this() { DateInMonth = dateInMonth; CompleteCondition = completeCondition; if (ruleList.Count > 0) { RuleList.AddRange(ruleList); } if (listRecords.Count > 0) { RecordList.AddRange(listRecords); } RecordCount = recordCount; if (expectedRuleDate.Count > 0) { ExpectedRuleDateList.AddRange(expectedRuleDate); } }