public EquipmentController()
        {
            string serverAddress = "https://localhost:5002";

            _channel = GrpcChannel.ForAddress(serverAddress);
            _client  = new Equipments.EquipmentsClient(_channel);
        }
Exemple #2
0
        public void Setup()
        {
            string serverAddress = "https://localhost:5002";

            _channel           = GrpcChannel.ForAddress(serverAddress);
            _client            = new EquipmentsClient(_channel);
            _random            = new Random();
            _equipmentsRequest = new EquipmentsRequest();

            _warehouseBeforeAdd = _client.GetAllEquipments(_equipmentsRequest);

            _uniqSerialNumber = findUniqSerialNumber(_warehouseBeforeAdd.EquipmentList, 10);
        }