public virtual void CanGetByRequestId() { int requestId = 1; WrmsSystem result = _wrmsSystemRepository.GetByRequestId(requestId); Assert.That(result != null); Assert.That(result.Id == 307); }
public TimeEntry Get(int id) { TimeEntry timeEntry = _timeEntryRepository.Get(id); if (timeEntry.RequestId != null) { timeEntry.SystemId = _wrmsSystemRepository.GetByRequestId(timeEntry.RequestId.Value).Id; } return(timeEntry); }