public void TestEditingExistingActivityRecord()
        {
            // Arrange
            bool result = false;
            IAnimalActivityManager manager =
                new AnimalActivityManager(_fakeActivityAccessor);
            AnimalActivity existingRecord = new AnimalActivity()
            {
                AnimalActivityId     = 1,
                AnimalID             = 5,
                AnimalActivityTypeID = "Play"
            };
            AnimalActivity updatedRecord = new AnimalActivity()
            {
                AnimalActivityId     = 1,
                AnimalID             = 4,
                AnimalActivityTypeID = "Play"
            };

            // Act
            manager.AddAnimalActivityRecord(existingRecord);
            result = manager.EditExistingAnimalActivityRecord(
                existingRecord, updatedRecord);

            // Assert
            Assert.IsTrue(result);
        }
        public void TestAddingAnimalActivityRecord()
        {
            // Arrange
            IAnimalActivityManager manager =
                new AnimalActivityManager(_fakeActivityAccessor);
            bool           result   = false;
            AnimalActivity activity = new AnimalActivity()
            {
                AnimalActivityId     = 1000,
                AnimalID             = 1,
                UserID               = 1,
                AnimalActivityTypeID = "Play"
            };

            // Act
            result = manager.AddAnimalActivityRecord(activity);

            // Assert
            Assert.IsTrue(result);
        }
        public void TestDeleteExistingAnimalActivityRecord()
        {
            // Arrange
            IAnimalActivityManager manager =
                new AnimalActivityManager(_fakeActivityAccessor);
            bool           result         = false;
            AnimalActivity animalActivity = new AnimalActivity()
            {
                AnimalActivityId     = 1,
                AnimalID             = 1,
                UserID               = 10000,
                AnimalActivityTypeID = "Feeding",
                ActivityDateTime     = DateTime.Now,
                Description          = "test"
            };

            // Act
            manager.AddAnimalActivityRecord(animalActivity);
            result = manager.DeleteAnimalActivityRecord(animalActivity);

            // Assert
            Assert.IsTrue(result);
        }