public void InsertWorkExperienceByIdProfile_InvalidWorkExperienceObject_ShouldBeThrownValidationException()
        {
            Mock <IUnitOfWork>    uow     = new Mock <IUnitOfWork>();
            WorkExperienceService service = new WorkExperienceService(uow.Object);

            service.Insert(null);
        }
        public void InsertWorkExperienceByIdProfile_InvalidWorkExperienceId_ShouldBeThrownValidationException()
        {
            Mock <IUnitOfWork>    uow     = new Mock <IUnitOfWork>();
            WorkExperienceService service = new WorkExperienceService(uow.Object);

            uow.Setup(a => a.WorkExperiences.Get(It.IsAny <int>())).Returns(new WorkExperience());
            service.Insert(new WorkExperienceDTO {
                Id = 1
            });
        }
        public void InsertWorkExperience_NewWorkExperienceAddingToDatabase_ShouldBeAddedNewWorkExperience()
        {
            Mock <IUnitOfWork>    uow     = new Mock <IUnitOfWork>();
            WorkExperienceService service = new WorkExperienceService(uow.Object);

            uow.Setup(a => a.WorkExperiences.Get(It.IsAny <int>())).Returns((WorkExperience)null);
            service.Insert(new WorkExperienceDTO()
            {
                Id = 1, ProgrammerId = "1"
            });
            uow.Verify(x => x.Save());
        }