コード例 #1
0
        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);
        }
コード例 #2
0
        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");
        }