Blog.Logic.ObjectMapper.Tests.EducationMapperTest.ShouldTransformEducationToEntity C# (CSharp) Method

ShouldTransformEducationToEntity() private method

private ShouldTransformEducationToEntity ( ) : void
return void
        public void ShouldTransformEducationToEntity()
        {
            var param = new Education
            {
                EducationId = 1,
                City = "Ipsum City",
                Country = "Dolor Republic",
                State = "Lorem State",
                SchoolName = "Fudge School",
                YearAttended = DateTime.UtcNow,
                YearGraduated = DateTime.UtcNow,
                EducationType = new EducationType { EducationTypeId = 1, EducationTypeName = "Grade School" },
                UserId = 1
            };

            var result = EducationMapper.ToEntity(param);

            Assert.IsInstanceOf(typeof(Db.Education), result);
            Assert.NotNull(result);
            Assert.IsNull(result.EducationType);
            Assert.AreNotEqual(0, result.EducationTypeId);
        }