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