Пример #1
0
        public void DeleteSeriesStatus_StatusExist_ReturnTrue()
        {
            // Arrange
            var service = new BookSeriesStatusService();
            var model   = new BookSeriesStatu();

            // Act
            model.Description = "Test";
            var result = service.DeleteBookSerieStatusValidation(model.Description);

            // Assert
            Assert.IsTrue(result);
        }
Пример #2
0
        public void DeleteSeriesStatus_StatusDoesNotExist_ReturnFalse()
        {
            // Arrange
            var service = new BookSeriesStatusService();
            var model   = new BookSeriesStatu();

            // Act
            model.Description = "blablabla";
            var result = service.DeleteBookSerieStatusValidation(model.Description);

            // Assert
            Assert.IsFalse(result);
        }