public async Task CheckLinkedLocksExistence_LockExists_ReturnedTrue()
        {
            // Arrage
            var @lock   = _fixure.Create <Locks.Entities.LockTag>();
            var created = await _repository.TryCreateAsync(@lock, _userId);

            // Act
            var result = await _repository.CheckLinkedLocksExistence(created.TagId, _userId);

            // Assert
            result.Should().BeTrue();
        }
예제 #2
0
 public Task <bool> CheckLinkedLocksExistence(Guid tagId, string userId)
 {
     return(_locksTagsRepository.CheckLinkedLocksExistence(tagId, userId));
 }