Blog.Logic.Core.Tests.EducationLogicTest.ShouldReturnFalseWhenDeleteEducationFoundNoRecord C# (CSharp) Method

ShouldReturnFalseWhenDeleteEducationFoundNoRecord() private method

private ShouldReturnFalseWhenDeleteEducationFoundNoRecord ( ) : void
return void
        public void ShouldReturnFalseWhenDeleteEducationFoundNoRecord()
        {
            _educationRepository = new Mock<IEducationRepository>();
            _educationRepository.Setup(a => a.Find(It.IsAny<Expression<Func<Education, bool>>>(), false))
               .Returns(new List<Education>());

            _educationLogic = new EducationLogic(_educationRepository.Object);

            var result = _educationLogic.Delete(1);

            Assert.IsFalse(result);
        }