예제 #1
0
        public async Task TearDown()
        {
            await _fluentEntity.Delete <MovieActor>().ExecuteAsync();

            await _fluentEntity.Delete <Actor>().ExecuteAsync();

            await _fluentEntity.Delete <Movie>().ExecuteAsync();

            await _fluentEntity.Delete <Genre>().ExecuteAsync();
        }
예제 #2
0
파일: BaseDao.cs 프로젝트: EnvyIT/apollo
        public BaseDao(IConnectionFactory connectionFactory)
        {
            var entityManager = EntityManagerFactory.CreateEntityManager(connectionFactory);

            _fluentEntity      = entityManager.FluentEntity();
            _fluentTransaction = entityManager.FluentTransaction();
            _fluentDelete      = _fluentEntity.Delete <T>();
        }
예제 #3
0
        public async Task TearDown()
        {
            await _fluentEntity.Delete <ReservationMock>().ExecuteAsync();

            await _fluentEntity.Delete <ScheduleMock>().ExecuteAsync();

            await _fluentEntity.Delete <SeatMock>().ExecuteAsync();

            await _fluentEntity.Delete <RowMock>().ExecuteAsync();

            await _fluentEntity.Delete <RowCategoryMock>().ExecuteAsync();

            await _fluentEntity.Delete <CinemaHallMock>().ExecuteAsync();

            await _fluentEntity.Delete <MovieActorMock>().ExecuteAsync();

            await _fluentEntity.Delete <ActorMock>().ExecuteAsync();

            await _fluentEntity.Delete <MovieMock>().ExecuteAsync();

            await _fluentEntity.Delete <GenreMock>().ExecuteAsync();

            await _fluentEntity.Delete <UserMock>().ExecuteAsync();

            await _fluentEntity.Delete <AddressMock>().ExecuteAsync();

            await _fluentEntity.Delete <CityMock>().ExecuteAsync();

            await _fluentEntity.Delete <RoleMock>().ExecuteAsync();
        }
예제 #4
0
 public async Task TearDownAsync()
 {
     await _fluentEntity.Delete <GenreMock>().ExecuteAsync();
 }