using System.Collections.Generic;
public static void Main()
var client = new AlcoClientBuilder()
.WithEthernetModule("ab2008013")
var clientWithAuth = new AlcoClientBuilder()
.WithEthernetModule("ab2008013")
.WithCredentials("user1", "MIGHAg")
public class AlcoClientBuilder : IBuilder
private string _password;
private string _ethernetModuleName;
public AlcoClientBuilder(){
public AlcoClientBuilder WithEthernetModule(string name)
_ethernetModuleName = name;
public AlcoClientBuilder WithPort(int port)
public AlcoClientBuilder WithCredentials(string login, string password)
public Alcotester Build()
return new Alcotester(_ethernetModuleName, _port, _login, _password, true);
public Alcotester(string p1, int p2, string p3, string p4, bool p5) {}
public interface IBuilder