示例#1
0
        private static void Setup()
        {
            _db = new TestDatabase().ApplyMigrations();
            Mapping.SetMappingEngine(MappingSetup.MappingEngine());

            _db.Database.InsertAsync(new TodoEntity {
                Title = "My Todo", AssignedToUserId = 1
            }).Await();
        }
        private static void Setup()
        {
            _db = new TestDatabase().ApplyMigrations();
            Mapping.SetMappingEngine(MappingSetup.MappingEngine());

            _db.Database.InsertAsync(new UserEntity {
                UserName = "******", DisplayName = "User"
            }).Await();
        }
示例#3
0
 private static void Setup()
 {
     _db = new TestDatabase().ApplyMigrations();
     Mapping.SetMappingEngine(MappingSetup.MappingEngine());
 }