/// <summary> /// Constructor to initialise dependencies /// </summary> public ConnectionsController(ICreateConnection the_new_connection_command, IUpdateConnection the_update_connection_command, IGetConnectionForUser the_get_connection_for_user_query, IGetConnections the_get_connections_query) { new_connection_command = Guard.IsNotNull(the_new_connection_command, "the_new_connection_command"); update_connection_command = Guard.IsNotNull(the_update_connection_command, "the_update_connection_command"); get_connection_for_user_query = Guard.IsNotNull(the_get_connection_for_user_query, "the_get_connection_for_user_command"); get_connections_query = Guard.IsNotNull(the_get_connections_query, "the_get_connections_command"); }
public DefaultConnectionManager(ICreateConnection <T> createConnection, IDisposeConnection <T> disposeConnection) { _createConnection = createConnection ?? throw new ArgumentNullException(nameof(createConnection)); _disposeConnection = disposeConnection ?? throw new ArgumentNullException(nameof(disposeConnection)); }
public OpleidingenService() { DbManager = GemeenschapFactory.GetDbManager(); }