Exemplo n.º 1
0
        public IJournalData GetNewJournalDefault()
        {
            List <IProtectionData> protectionDatas = _protectionService.GetProtections().ToList();

            return(new JournalData()
            {
                Id = Guid.NewGuid(),
                Name = GetNewNameDefault(),
                OccurredAt = DateTimeOffset.UtcNow,
                RouteId = Guid.NewGuid(),
                RouteName = "Searching for route ....",
                ProtectionId = protectionDatas.FirstOrDefault().Id,
                ProtectionName = protectionDatas.FirstOrDefault().DisplayName
            });
        }