예제 #1
0
        public async Task DisplayAsync()
        {
            Console.WriteLine("Please enter the album number [1-100] to view it's contents");
            var albumNumber = Console.ReadLine();

            if (AlbumNumberHelper.ValidNumber(albumNumber))
            {
                await _contentsDisplayHandler.DisplayPhotosAsync(albumNumber);
            }
            else
            {
                Console.WriteLine("You did not enter a valid album number [1-100]. Let's try that again.");
            }
        }
예제 #2
0
        public void AlbumNumberIsMinimumValidNumber()
        {
            var result = AlbumNumberHelper.ValidNumber("1");

            Assert.True(result);
        }