示例#1
0
 public void ThenRelationshipsRepositoryAddRelationshipShouldHaveBeenCalled()
 => RelationshipsRepository.Verify(repository => repository.CreateRelationship(It.IsAny <Relationship>()), Times.Once);
示例#2
0
 public void ThenRelationshipsRepositoryGetRelationshipsByIdAndType()
 => RelationshipsRepository.Verify(repository => repository.GetRelationshipsByIdAndType(
                                       _userId, (RelationshipType)RelationshipTypeId), Times.Never);
示例#3
0
 public void ThenRelationshipsRepositoryGetRelationshipsByIdAndTypeShouldHaveBeenCalled()
 => RelationshipsRepository.Verify(repository => repository.GetRelationshipsByIdAndType(
                                       _userId, (RelationshipType)RelationshipTypeId), Times.Once);
示例#4
0
 public void ThenRelationshipsRepositoryGetRelationshipByIdsAndTypeShouldHaveBeenCalled()
 => RelationshipsRepository.Verify(
     repository =>
     repository.GetRelationshipByIdsAndType(_userOneId, _userTwoId, RelationshipType.Friend),
     Times.Once);
示例#5
0
 public void ThenRelationshipsRepositoryGetRelationshipByIdsAndType()
 => RelationshipsRepository.Verify(
     repository =>
     repository.GetRelationshipByIdsAndType(_userOneId, _userTwoId,
                                            (RelationshipType)RelationshipTypeId), Times.Once);
示例#6
0
 public void ThenRelationshipsRepositoryGetRelationshipByIdsAndType()
 => RelationshipsRepository.Verify(
     repository =>
     repository.GetRelationshipByIdsAndType(It.IsAny <Guid>(), It.IsAny <Guid>(), It.IsAny <RelationshipType>()),
     Times.Never);