public void Contractor_Edit_Create_Good_Object()
        {
            //Arrnage
            ContractorController contractorController = new ContractorController(contractorRepository.Object, Mapper.Instance);

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

            //Assert
            Assert.IsInstanceOfType(viewResult.Model, typeof(mContractor));
            Assert.AreEqual(((mContractor)viewResult.Model).Id, contractorList.First().Id);
        }
        public void Contractor_EditPost_Works_Good_Object()
        {
            //Arrnage
            var model = contractorList.First();

            model.Pesel = "123123";
            ContractorController contractorController = new ContractorController(contractorRepository.Object, Mapper.Instance);

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

            //Assert
            Assert.AreEqual(model.Pesel, contractorList.First().Pesel);
        }