public void ThenRelationshipsRepositoryAddRelationshipShouldHaveBeenCalled() => RelationshipsRepository.Verify(repository => repository.CreateRelationship(It.IsAny <Relationship>()), Times.Once);
public void ThenRelationshipsRepositoryGetRelationshipsByIdAndType() => RelationshipsRepository.Verify(repository => repository.GetRelationshipsByIdAndType( _userId, (RelationshipType)RelationshipTypeId), Times.Never);
public void ThenRelationshipsRepositoryGetRelationshipsByIdAndTypeShouldHaveBeenCalled() => RelationshipsRepository.Verify(repository => repository.GetRelationshipsByIdAndType( _userId, (RelationshipType)RelationshipTypeId), Times.Once);
public void ThenRelationshipsRepositoryGetRelationshipByIdsAndTypeShouldHaveBeenCalled() => RelationshipsRepository.Verify( repository => repository.GetRelationshipByIdsAndType(_userOneId, _userTwoId, RelationshipType.Friend), Times.Once);
public void ThenRelationshipsRepositoryGetRelationshipByIdsAndType() => RelationshipsRepository.Verify( repository => repository.GetRelationshipByIdsAndType(_userOneId, _userTwoId, (RelationshipType)RelationshipTypeId), Times.Once);
public void ThenRelationshipsRepositoryGetRelationshipByIdsAndType() => RelationshipsRepository.Verify( repository => repository.GetRelationshipByIdsAndType(It.IsAny <Guid>(), It.IsAny <Guid>(), It.IsAny <RelationshipType>()), Times.Never);