public void MapEFToBOList() { var mapper = new DALJobCandidateMapper(); JobCandidate entity = new JobCandidate(); entity.SetProperties(1, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); List <BOJobCandidate> response = mapper.MapEFToBO(new List <JobCandidate>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALJobCandidateMapper(); JobCandidate entity = new JobCandidate(); entity.SetProperties(1, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); BOJobCandidate response = mapper.MapEFToBO(entity); response.BusinessEntityID.Should().Be(1); response.JobCandidateID.Should().Be(1); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Resume.Should().Be("A"); }