Пример #1
0
        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);
        }
Пример #2
0
 public static bool IsCourseOrPrice(this GetDataLocksResponse.DataLock dataLock)
 {
     return(dataLock.IsCourse() || dataLock.IsPrice());
 }
Пример #3
0
 public static bool IsCourseAndPrice(this GetDataLocksResponse.DataLock dataLock)
 {
     return(dataLock.HasCourseDataLock() && dataLock.HasPrice());
 }
Пример #4
0
 public static bool HasPrice(this GetDataLocksResponse.DataLock dataLock)
 {
     return(dataLock.ErrorCode.HasFlag(DataLockErrorCode.Dlock07));
 }
Пример #5
0
 public static bool IsPrice(this GetDataLocksResponse.DataLock dataLock)
 {
     return(dataLock.ErrorCode == DataLockErrorCode.Dlock07);
 }
Пример #6
0
 public static bool IsUnresolvedError(this GetDataLocksResponse.DataLock dataLock)
 {
     return(dataLock.DataLockStatus != Status.Pass && !dataLock.IsResolved);
 }
Пример #7
0
 private static bool IsUnresolvedDataLock(GetDataLocksResponse.DataLock dataLock)
 {
     return(dataLock.DataLockStatus != Status.Pass && !dataLock.IsResolved);
 }
 public void Arrange()
 {
     _dataLock = new GetDataLocksResponse.DataLock();
 }