public void ManageTrim_CarObj_IsNull()
        {
            //Arrange
            var sut = new TrimRepository(_mockContext.Object);

            //Act
            var returnedValue = sut.ManageTrim(null);

            //Assert
            Assert.Equal(0, returnedValue);
        }
        public void ManageTrim_CarObj_IsNotNull_Edit_ShouldCallCorrectMethods()
        {
            //Arrange
            var sut = new TrimRepository(_mockContext.Object);

            //Act
            _ = sut.ManageTrim(new Trim()
            {
                TrimName = "trim1"
            });

            //Assert
            _mockContext.Verify(x => x.Trims.Add(It.IsAny <Trim>()), Times.Never);
            _mockContext.Verify(x => x.SaveChanges(), Times.Once);
        }