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); }
public SupervisorDelegate?GetSupervisorDelegateRecordByInviteHash(Guid inviteHash) { return(supervisorDelegateDataService.GetSupervisorDelegateRecordByInviteHash(inviteHash)); }