public static IsLockedId ( string id, TaskType type ) : bool | ||
id | string | |
type | TaskType | |
Результат | bool |
public void LockIdSucceedsWhenLockRecordDoesNotExist() { var http_response = Scheduler.UnlockId(testid, test_task_type); http_response = Scheduler.LockId(testid, test_task_type); Assert.AreEqual(HttpStatusCode.Created, http_response.status); Assert.AreEqual(true, Scheduler.IsLockedId(testid, test_task_type)); }