public void DemoPostgresConnection() { var repo = new PizzaRepository(new NpgsqlConnection()); var command = repo.GetBySize(12); Assert.IsType <NpgsqlCommand>(command); Assert.IsType <NpgsqlParameter>(command.Parameters[0]); }