public void DeleteCaseInfoSuccessTest()
        {
            var caseInfoDto = new CaseInfoDto
            {
                CaseId          = 1,
                CaseNumber      = "1",
                CourtNumber     = "1",
                Value           = 1,
                Judge           = 'F',
                Court           = "Test",
                CounterParty    = "Test",
                Note            = "Test",
                DateCreated     = DateTime.Now,
                DateModified    = DateTime.Now,
                IsDeleted       = false,
                CaseCategory    = 1,
                CustomerId      = 1,
                ClientId        = 1,
                CreatedByUserId = 1
            };

            var caseInfoRepo = new Mock <ICaseInfoRepository>();

            caseInfoRepo.Setup(x => x.DeleteCase(It.IsAny <int>()));
            var     caseInfoManipulation = new CaseInfoManipulation(caseInfoRepo.Object);
            IMapper _mapper    = new Mapper(null);
            var     controller = new CaseInfoController(caseInfoManipulation, _mapper);
            var     result     = controller.DeleteCase(1);

            Assert.IsType <OkObjectResult>(result);
        }
        public void DeleteNonExistentCaseInfoFailureTest()
        {
            // Arrange & Act
            var     mockRepo   = new Mock <ICaseInfoManipulation>();
            IMapper _mapper    = new Mapper(null);
            var     controller = new CaseInfoController(mockRepo.Object, _mapper);

            // Act
            var result = controller.DeleteCase(1);

            // Assert
            Assert.IsType <OkObjectResult>(result);
        }