public static bool HasCourseDataLock(this GetDataLocksResponse.DataLock dataLock) { var result = dataLock.ErrorCode.HasFlag(DataLockErrorCode.Dlock03) || dataLock.ErrorCode.HasFlag(DataLockErrorCode.Dlock04) || dataLock.ErrorCode.HasFlag(DataLockErrorCode.Dlock05) || dataLock.ErrorCode.HasFlag(DataLockErrorCode.Dlock06); return(result); }
public static bool IsCourseOrPrice(this GetDataLocksResponse.DataLock dataLock) { return(dataLock.IsCourse() || dataLock.IsPrice()); }
public static bool IsCourseAndPrice(this GetDataLocksResponse.DataLock dataLock) { return(dataLock.HasCourseDataLock() && dataLock.HasPrice()); }
public static bool HasPrice(this GetDataLocksResponse.DataLock dataLock) { return(dataLock.ErrorCode.HasFlag(DataLockErrorCode.Dlock07)); }
public static bool IsPrice(this GetDataLocksResponse.DataLock dataLock) { return(dataLock.ErrorCode == DataLockErrorCode.Dlock07); }
public static bool IsUnresolvedError(this GetDataLocksResponse.DataLock dataLock) { return(dataLock.DataLockStatus != Status.Pass && !dataLock.IsResolved); }
private static bool IsUnresolvedDataLock(GetDataLocksResponse.DataLock dataLock) { return(dataLock.DataLockStatus != Status.Pass && !dataLock.IsResolved); }
public void Arrange() { _dataLock = new GetDataLocksResponse.DataLock(); }