public void NullTests() { Assert.IsNotNull(_service.GetEntriesModel(_requestUTC, null, null, 0, 0, 999)); Assert.IsNotNull(_service.GetEntry(_requestUTC, _entryID_A)); Assert.IsNotNull(_service.GetReportModel(_requestUTC, null, null, 0, 0)); Assert.IsNotNull(_service.GetStatusModel(_requestUTC)); Assert.IsNotNull(_service.GetSummaryModel(_requestUTC)); }
protected TracktorWebModel GenerateWebModel(bool updateOnly = false) { var summaryModel = _service.GetSummaryModel(Context); return(new TracktorWebModel { SummaryModel = summaryModel, EntriesModel = _service.GetEntriesModel(Context, null, null, 0, 0, 20), StatusModel = _service.GetStatusModel(Context), EditModel = updateOnly ? null : new TEditModelDto { Entry = new TEntryDto { EndDate = DateTime.UtcNow, StartDate = DateTime.UtcNow, IsDeleted = false, InProgress = false, TaskName = "", ProjectName = "", TTaskID = 0, TEntryID = 0, Contrib = 0, } }, ReportModel = updateOnly ? null : WebReportModel.Create(summaryModel, DateTime.UtcNow) }); }