public void EmployeePictureRepository_UpdateEmployeePicture_NotFail_Test()
        {
            var context         = new MyCompanyContext();
            var employeePicture = context.EmployeePictures.FirstOrDefault();
            var target          = new EmployeePictureRepository(context);

            employeePicture.PictureType = PictureType.Big;
            target.Update(employeePicture);

            var actual = context.EmployeePictures.FirstOrDefault(p => p.EmployeePictureId == employeePicture.EmployeePictureId);

            Assert.AreEqual((int)employeePicture.PictureType, (int)actual.PictureType);
        }
        ///<inheritdoc/>
        public override void Handle(BrokeredMessage message)
        {
            var employeeRepository        = new EmployeeRepository(new MyCompanyContext());
            var employeePictureRepository = new EmployeePictureRepository(new MyCompanyContext());

            var dto             = message.GetBody <EmployeePictureDTO>();
            var employeePicture = Mapper.Map <EmployeePicture>(dto);

            if (employeeRepository.Get(employeePicture.EmployeeId) != null)
            {
                employeePictureRepository.Update(employeePicture);
            }
        }