public void FormatInputData_Receiving_Empty_Value()
        {
            // Arrange
            string inputData = String.Empty;

            // Act
            PetShopInputViewModel petShopInput = _ProgramServices.FormatInputData(inputData);

            // Assert
            Assert.IsNotNull(petShopInput.ErrorMessage);
        }
Пример #2
0
        static void Main(string[] args)
        {
            var  petShopInput     = new PetShopInputViewModel();
            bool inputDataIsValid = true;

            do
            {
                Console.WriteLine("Digite os dados de entrada no formato, <data> <Quant Caes pequenos> <Quant Caes grandes>:");
                petShopInput     = _programServices.FormatInputData(Console.ReadLine());
                inputDataIsValid = String.IsNullOrEmpty(petShopInput.ErrorMessage) ? true : false;
            } while (inputDataIsValid == false);

            var petShopResponse = _petShopService.GetBetterPetShop(petShopInput);

            Console.WriteLine($"Melhor Canil: {petShopResponse.BestPetShopName}");
            Console.WriteLine($"Preço Total: {petShopResponse.TotalPriceDogBath}");
            Console.ReadKey();
        }