public void UpdateTest_Exception()
        {
            // Arrange
            ChildResourceService target   = new ChildResourceService(_exceptionRepository, _mockLogger, _mapper);
            ChildResource        expected = _mockdata.UpdateChildResource1();

            expected.Name = Guid.NewGuid().ToString();

            // Act
            ChildResource actual = target.Update(expected);

            // Assert
            Assert.IsTrue(target.HasError);
        }
        public void UpdateInvalidTest()
        {
            // Arrange
            ChildResourceService target   = new ChildResourceService(_repository, _mockLogger, _mapper);
            ChildResource        expected = _mockdata.UpdateChildResource1();

            expected.Id   = -1;
            expected.Name = Guid.NewGuid().ToString();

            // Act
            ChildResource actual = target.Update(expected);

            // Assert
            Assert.IsFalse(target.HasError);
        }