#pragma once

#include <balancer/server/server.h>

#include <library/cpp/testing/unittest/tests_data.h>
#include <util/system/thread.h>

namespace NBalancerClient::NTesting {
    struct TService {
        TPortManager PM;
        ui16 Port;
        NBalancerServer::TStandaloneServer Server;
        TThread ServerThread;
    public:
        TService(const NBalancerServer::TServerCallback& callback, NBalancerServer::TOptions options, ui16 port = 0);
        ~TService();
    };
}
