public void Deserialize(IXunitSerializationInfo info) { String val = info.GetValue <String>("Value"); UserHabitRecordsControllerTestData_WeekNoOfTimes other = JsonSerializer.Deserialize <UserHabitRecordsControllerTestData_WeekNoOfTimes>(val); // CaseID = other.CaseID; Dow = other.Dow; CompleteCondition = other.CompleteCondition; RecordCount = other.RecordCount; if (other.RecordDatesList.Count > 0) { RecordDatesList.AddRange(other.RecordDatesList); } if (other.TargetRuleDateList.Count > 0) { TargetRuleDateList.AddRange(other.TargetRuleDateList); } }
public void Deserialize(IXunitSerializationInfo info) { String val = info.GetValue <String>("Value"); UserHabitRecordsControllerTestData_DailyNoOfTimes other = JsonSerializer.Deserialize <UserHabitRecordsControllerTestData_DailyNoOfTimes>(val); // CompleteCondition = other.CompleteCondition; // ExpectedRecordCount = other.ExpectedRecordCount; if (other.RuleList.Count > 0) { RuleList.AddRange(other.RuleList); } if (other.RecordDatesList.Count > 0) { RecordDatesList.AddRange(other.RecordDatesList); } if (other.ExpectedRecordList.Count > 0) { ExpectedRecordList.AddRange(other.ExpectedRecordList); } }