static void Main(string[] args) { Dog dog1 = new Dog(1, "Bruno", "brown"); Dog dog2 = new Dog(2, "Kara", "white"); Dog dog3 = new Dog(3, "Rex", "black"); Dog.Validate(dog1); Console.WriteLine("====="); Dog.Validate(dog2); Console.WriteLine("====="); Dog.Validate(dog3); Console.WriteLine("====="); DogShelter.AddDogs(dog1); DogShelter.AddDogs(dog2); DogShelter.AddDogs(dog3); Console.WriteLine("====="); DogShelter.PrintAll(); Console.ReadLine(); }
static void Main(string[] args) { Dog firstDog = new Dog(1, "Coki", "white"); Dog secondDog = new Dog(2, "Moki", "black"); Dog thirdDog = new Dog(3, "Loki", "gold"); Dog.Validate(firstDog); Console.WriteLine("=================="); Dog.Validate(secondDog); Console.WriteLine("=================="); Dog.Validate(thirdDog); Console.WriteLine("=================="); DogShelter.AddDogs(firstDog); DogShelter.AddDogs(secondDog); DogShelter.AddDogs(thirdDog); Console.WriteLine("================="); DogShelter.PrintAll(); Console.ReadLine(); }