public async Task GetLinkedLocksByTagIdAsync_LockExists_LockReturned() { // Arrage var @lock = _fixure.Create <Locks.Entities.LockTag>(); var created = await _repository.TryCreateAsync(@lock, _userId); // Act var result = (await _repository.GetLinkedLocksByTagIdAsync(created.TagId, _userId)).ToArray(); // Assert result.Length.Should().Be(1); result.Should().BeEquivalentTo(created.LockId); }
public Task <IEnumerable <Guid> > GetLinkedLocksByTagAsync(Guid tagId, string userId) { return(_locksTagsRepository.GetLinkedLocksByTagIdAsync(tagId, userId)); }