public async Task TearDown() { await _fluentEntity.Delete <MovieActor>().ExecuteAsync(); await _fluentEntity.Delete <Actor>().ExecuteAsync(); await _fluentEntity.Delete <Movie>().ExecuteAsync(); await _fluentEntity.Delete <Genre>().ExecuteAsync(); }
public BaseDao(IConnectionFactory connectionFactory) { var entityManager = EntityManagerFactory.CreateEntityManager(connectionFactory); _fluentEntity = entityManager.FluentEntity(); _fluentTransaction = entityManager.FluentTransaction(); _fluentDelete = _fluentEntity.Delete <T>(); }
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(); }
public async Task TearDownAsync() { await _fluentEntity.Delete <GenreMock>().ExecuteAsync(); }