Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }