示例#1
0
        static void Main(string[] args)
        {
            Console.WriteLine(@"Welcome to the AGL Pet Api Client Demo");

            Console.WriteLine(@"Please wait whilst the results are being retreived....");

            var aglPetApiConsumer = new AGLPetApiConsumer();

            aglPetApiConsumer.PrintFormattedPetNamesWhereAnimalType();

            Console.ReadLine();
        }
示例#2
0
        public void PrintFormattedPetNamesWhereAnimalType_When_Expects()
        {
            //Arrange
            var printService  = A.Fake <IPrintService>();
            var aglApiService = A.Fake <IAglApiService>();

            var testConsumer = new AGLPetApiConsumer.AGLPetApiConsumer(aglApiService, printService);

            ////Act
            testConsumer.PrintFormattedPetNamesWhereAnimalType();

            //Assert - todo
        }