public void Contractor_DeletePost_Works_Good_Object()
        {
            //Arrnage
            var model = contractorList.First();
            ContractorController contractorController = new ContractorController(contractorRepository.Object, Mapper.Instance);

            //Act
            var result = contractorController.Delete(Mapper.Map <mContractor>(model));

            //Assert
            Assert.AreEqual(0, contractorList.Count);
        }
        public void Contractor_Delete_Create_Good_Object()
        {
            //Arrnage
            ContractorController contractorController = new ContractorController(contractorRepository.Object, Mapper.Instance);

            //Act
            var result     = contractorController.Delete(contractorList.First().Id);
            var viewResult = result as ViewResult;

            //Assert
            Assert.IsInstanceOfType(viewResult.Model, typeof(mContractor));
            Assert.AreEqual(((mContractor)viewResult.Model).Id, contractorList.First().Id);
        }