Exemplo n.º 1
0
        public async Task CanRetrieveInsertedAnnouncement()
        {
            var announcement = new Announcement()
            {
                PatrolId             = 1,
                AnnouncementMarkdown = "Hello world",
                CreatedAt            = DateTime.Now,
                CreatedByUserId      = 1,
                PostAt     = DateTime.Now,
                Subject    = "Test",
                IsInternal = true,
                IsPublic   = true
            };

            await _announcementRepository.InsertAnnouncement(announcement);

            var announcements = await _announcementRepository.GetAnnouncements(1, null, true, true);

            Assert.IsNotEmpty(announcements);
        }