Beispiel #1
0
        public void GetContentByNumberTest()
        {
            // Arrange
            SeedItemList();
            int correctNum   = 1;
            int incorrectNum = 9;

            MenuContent correctResult, incorrectResult;

            // Act
            correctResult   = _testRepo.GetItemsByNumber(correctNum);
            incorrectResult = _testRepo.GetItemsByNumber(incorrectNum);
            // Assert
            Assert.IsNotNull(correctResult);
            Assert.IsNull(incorrectResult);
        }