public void CloseTest() { NpgsqlConnection _connection = new NpgsqlConnection(conectionStr); _connection.Open(); IRoomRepository roomrepo = new RoomRepository(_connection, null); Room r = new Room(6); roomrepo.Create(r); roomrepo.Close(r); Assert.True(roomrepo.FindRoom(r.ID) == null); }