public void MapIntEntityToIntEntityViewModelWithPredefinedMapShouldMapAllProperties()
 {
     Init();
     IntEntity entity = new IntEntity() { Id = 1, Name = "Test", Number = 10, IsRequired = true, StartDate = new DateTime(2012, 5, 16) };
     IntEntityViewModel model = entity.Map<IntEntityViewModel>();
     bool result = entity.Id == model.Id
                     && entity.Name == model.EntityName
                     && entity.Number == model.Order
                     && entity.IsRequired == model.Required
                     && entity.StartDate == model.Date;
     Assert.IsTrue(result);
 }
 public void MapIntEntityToIntEntityViewModelWithPredefinedMapAndExistingModelShouldMapAllPropertiesButKeepValuesOfPropertiesThatDoNotExistInTheSource()
 {
     Init();
     IntEntity entity = new IntEntity() { Name = "Test", IsRequired = false, StartDate = new DateTime(2012, 5, 16) };
     IntEntityViewModel model = new IntEntityViewModel() { Id = 1, EntityName = "Test", Order = 10, Required = true, ViewModelOnly = "Test" };
     entity.Map<IntEntityViewModel>(model);
     bool result = entity.Id == model.Id
                     && entity.Name == model.EntityName
                     && entity.Number == model.Order
                     && entity.IsRequired == model.Required
                     && entity.StartDate == model.Date
                     && model.ViewModelOnly == "Test";
     Assert.IsTrue(result);
 }