Exemplo n.º 1
0
        public async Task FilterUids()
        {
            var filter = new ImapFilter().Uids(RetrievalConfiguration.UidsToRetrieve);
            var list   = await Mail2DB.GetUIds(filter);

            list?.Count.Should().BeGreaterThan(0);
        }
Exemplo n.º 2
0
        public async Task FilterDeliveredBetween()
        {
            var filter = new ImapFilter().DeliveredBetween(RetrievalConfiguration.RetrieveFrom, RetrievalConfiguration.RetrieveTo);
            var list   = await Mail2DB.GetUIds(filter);

            list?.Count.Should().BeGreaterThan(0);
        }
Exemplo n.º 3
0
        public async Task GetSpecificMailFolder()
        {
            Mail2DB.SetMailFolder("inbox");

            var list = await Mail2DB.GetUIds(DefaultFilter);

            list?.Count.Should().BeGreaterThan(0);
        }
Exemplo n.º 4
0
        public async Task GetSpecificMailfolder()
        {
            Mail2DB.SetMailFolder("Sent");
            await Mail2DB.AuthenticateAsync();

            var count = (await Mail2DB.GetUIds()).Count;

            count.Should().BeGreaterThan(0);
        }
Exemplo n.º 5
0
        public async Task TestRetrieval()
        {
            var list = await Mail2DB.GetUIds(DefaultFilter);

            list?.Count.Should().BeGreaterThan(0);
        }