Example #1
0
        public void GetAllRemindersShouldReturnAList()
        {
            var mockRepo = new Mock <IReminderRepository>();

            mockRepo.Setup(repo => repo.GetAllReminders()).Returns(this.GetReminders());
            var service = new API.Service.ReminderService(mockRepo.Object);

            var actual = service.GetAllReminders();

            Assert.IsAssignableFrom <List <Reminder> >(actual);
            Assert.NotEmpty(actual);
        }