public async void should_release_lock() { var lockId = Guid.NewGuid().ToString(); await _subject.Start(); var first = await _subject.AcquireLock(lockId); await _subject.ReleaseLock(lockId); var second = await _subject.AcquireLock(lockId); await _subject.Stop(); Assert.True(first); Assert.True(second); }