public void CreateInstance_with_correct_entitymap_should_create_list_for_many_to_many_relations() { var dbsettings = SessionHelper.Factory.DbSettings; var entitySerializer = new EntitySerializer(dbsettings); Employee emp = entitySerializer.CreateNewInstance <Employee>(); Assert.IsTrue(((Collections.TrackableList <Animal>)emp.AnimalsOnAnimalsHandler_EmployeeId).IsTracking); }
public void CreateInstance_with_correct_entitymap_should_create_instance() { var dbsettings = SessionHelper.Factory.DbSettings; var entitySerializer = new EntitySerializer(dbsettings); Zoo zoo = entitySerializer.CreateNewInstance <Zoo>(); Assert.IsNotNull(zoo); }