Exemplo n.º 1
0
        public void GetSupervisorDelegateRecordByInviteHash_returns_matching_record()
        {
            // Given
            var record = new SupervisorDelegate {
                ID = 2
            };
            var inviteHash = Guid.NewGuid();

            A.CallTo(() => supervisorDelegateDataService.GetSupervisorDelegateRecordByInviteHash(inviteHash))
            .Returns(record);

            // When
            var result = supervisorDelegateService.GetSupervisorDelegateRecordByInviteHash(inviteHash);

            // Then
            result.Should().Be(record);
        }
Exemplo n.º 2
0
 public SupervisorDelegate?GetSupervisorDelegateRecordByInviteHash(Guid inviteHash)
 {
     return(supervisorDelegateDataService.GetSupervisorDelegateRecordByInviteHash(inviteHash));
 }