示例#1
0
        public void TestAnimalManagerAddNewAnimal()
        {
            // arrange
            bool           isValidAnimal = false;
            IAnimalManager animalManager = new AnimalManager(_animalAccessor);

            // act
            Animal animal1 = new Animal()
            {
                AnimalID        = 4,
                AnimalName      = "D",
                Dob             = DateTime.Now.Date,
                AnimalBreed     = "D",
                ArrivalDate     = DateTime.Now.Date,
                CurrentlyHoused = true,
                Adoptable       = true,
                Active          = true,
                AnimalSpeciesID = "D"
            };

            isValidAnimal = animalManager.AddNewAnimal(animal1);

            // assert
            Assert.IsTrue(isValidAnimal);
        }