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