예제 #1
0
        public void DeletReminderShouldSuccess()
        {
            int reminderId = 2;

            var actual = repository.DeletReminder(reminderId);

            Assert.True(actual);
            Assert.Null(repository.GetReminderById(reminderId));
        }
        public void GetReminderByIdShouldReturnAReminder()
        {
            var actual = repository.GetReminderById(201);

            Assert.NotNull(actual);
            Assert.IsAssignableFrom <Reminder>(actual);
            Assert.Equal("Sports", actual.Name);
        }
예제 #3
0
        public void GetReminderByIdShouldReturnAReminder()
        {
            Reminder reminder = new Reminder {
                Id = 201, Name = "Sports", CreatedBy = "Mukesh", Description = "sports reminder", CreationDate = new DateTime(), Type = "email"
            };

            var actual = repository.GetReminderById(201);

            Assert.NotNull(actual);
            Assert.IsAssignableFrom <Reminder>(actual);
        }