コード例 #1
0
        public virtual void CanGetByRequestId()
        {
            int        requestId = 1;
            WrmsSystem result    = _wrmsSystemRepository.GetByRequestId(requestId);

            Assert.That(result != null);
            Assert.That(result.Id == 307);
        }
コード例 #2
0
        public TimeEntry Get(int id)
        {
            TimeEntry timeEntry = _timeEntryRepository.Get(id);

            if (timeEntry.RequestId != null)
            {
                timeEntry.SystemId = _wrmsSystemRepository.GetByRequestId(timeEntry.RequestId.Value).Id;
            }
            return(timeEntry);
        }