Esempio n. 1
0
        public async Task NumberOfPagesGivesCorrectNumber()
        {
            // Arrange
            var db      = DatabaseInitializer.InitializeForInboxService();
            var service = new InboxService(db);

            // Act

            var result = await service.GetAllMessages("kolio", 1);

            //Assert
            result.NumberOfPages.Should().Be(1);
        }
Esempio n. 2
0
        public async Task GetAllMessagesWorksCorrect()
        {
            // Arrange
            var db      = DatabaseInitializer.InitializeForInboxService();
            var service = new InboxService(db);

            // Act

            var result = await service.GetAllMessages("georgi", 1);

            //Assert
            result.Messages.Should().NotBeNull();
        }