public EquipmentController() { string serverAddress = "https://localhost:5002"; _channel = GrpcChannel.ForAddress(serverAddress); _client = new Equipments.EquipmentsClient(_channel); }
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); }