public void MapModelToBO() { var mapper = new BOLJobCandidateMapper(); ApiJobCandidateRequestModel model = new ApiJobCandidateRequestModel(); model.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); BOJobCandidate response = mapper.MapModelToBO(1, model); response.BusinessEntityID.Should().Be(1); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Resume.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLJobCandidateMapper(); BOJobCandidate bo = new BOJobCandidate(); bo.SetProperties(1, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); List <ApiJobCandidateResponseModel> response = mapper.MapBOToModel(new List <BOJobCandidate>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLJobCandidateMapper(); BOJobCandidate bo = new BOJobCandidate(); bo.SetProperties(1, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); ApiJobCandidateResponseModel response = mapper.MapBOToModel(bo); 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"); }